diff options
author | Christian Persch <chpe@gnome.org> | 2010-05-14 14:22:45 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2010-05-15 00:12:17 +0200 |
commit | dc39825aa3b1556e57460df1cca0b764a5741a66 (patch) | |
tree | a639e6af81f40dbccc7c421e7a953b480f8d98f6 | |
parent | 5b2c7f10bd5a42d2956b53b13f3aabb947f901dd (diff) | |
download | glib-dc39825aa3b1556e57460df1cca0b764a5741a66.tar.gz |
Plug a mem leak in get_uninitialized_connection
Free the bus address after creating the singleton.
==26308== 39,736 (10,517 direct, 29,219 indirect) bytes in 388 blocks
are definitely lost in loss record 14 of 15
==26308== at 0x4024D2E: malloc (vg_replace_malloc.c:207)
==26308== by 0x4079A90: g_malloc (gmem.c:135)
==26308== by 0x4079DC8: g_malloc_n (gmem.c:252)
==26308== by 0x4095607: g_strdup (gstrfuncs.c:102)
==26308== by 0x4216B9A: g_dbus_address_get_for_bus_sync
(gdbusaddress.c:961)
==26308== by 0x422A7AE: get_uninitialized_connection
(gdbusconnection.c:5241)
Bug #618622.
-rw-r--r-- | gio/gdbusconnection.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 277199ee6..3c0051aac 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -5256,6 +5256,7 @@ get_uninitialized_connection (GBusType bus_type, G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION, "exit-on-close", TRUE, NULL); + g_free (address); } else { |