]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix memleak in GetConnectionCredentials handler
authorJacek Bukarewicz <j.bukarewicz@samsung.com>
Wed, 17 Jun 2015 17:53:41 +0000 (18:53 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 17 Jun 2015 18:00:02 +0000 (19:00 +0100)
Reply message was not unreferenced when GetConnectionCredentials
handler was successful.

Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
[smcv: changed bus_message_unref() to dbus_message_unref()]
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=91008

bus/driver.c

index f5d3ebe2128419408b03b89c6e1aa24ab233835b..888c7ca7fe2f822a6dec9def61abf5b403e40af8 100644 (file)
@@ -1613,6 +1613,8 @@ bus_driver_handle_get_connection_credentials (DBusConnection *connection,
       goto oom;
     }
 
+  dbus_message_unref (reply);
+
   return TRUE;
 
  oom: