Commit bc011096 authored by Philip Withnall's avatar Philip Withnall

gdbusmessage: Fix a minor memory leak on an error path

If g_dbus_message_to_blob() fails at all, it will leak its mbuf. Spotted
by running the gdbus-serialization test under Valgrind — so there is a
justification for leak-free tests after all!
parent 1b3dbec0
......@@ -2745,6 +2745,9 @@ g_dbus_message_to_blob (GDBusMessage *message,
ret = (guchar *);
if (ret == NULL)
g_free (;
return ret;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment