mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Plug a mem leak in the gdbus-proxy test
==23341== 65 bytes in 3 blocks are definitely lost in loss record 927 of 1,020 ==23341== at 0x4005BDC: malloc (vg_replace_malloc.c:195) ==23341== by 0x4057094: g_malloc (gmem.c:134) ==23341== by 0x40573DB: g_malloc_n (gmem.c:281) ==23341== by 0x40717FC: g_strdup (gstrfuncs.c:101) ==23341== by 0x4147F56: value_lcopy_string (gvaluetypes.c:313) ==23341== by 0x4123F0B: g_object_get_valist (gobject.c:1643) ==23341== by 0x41240FF: g_object_get (gobject.c:1731) ==23341== by 0x804C39E: test_basic (gdbus-proxy.c:522) Bug #628331.
This commit is contained in:
parent
5de1bf4a91
commit
db4fb1b115
@ -505,9 +505,9 @@ test_basic (GDBusProxy *proxy)
|
||||
GDBusConnection *conn;
|
||||
GDBusProxyFlags flags;
|
||||
GDBusInterfaceInfo *info;
|
||||
const gchar *name;
|
||||
const gchar *path;
|
||||
const gchar *interface;
|
||||
gchar *name;
|
||||
gchar *path;
|
||||
gchar *interface;
|
||||
gint timeout;
|
||||
|
||||
connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
|
||||
@ -539,6 +539,9 @@ test_basic (GDBusProxy *proxy)
|
||||
g_assert_cmpint (timeout, ==, -1);
|
||||
|
||||
g_object_unref (conn);
|
||||
g_free (name);
|
||||
g_free (path);
|
||||
g_free (interface);
|
||||
|
||||
g_object_unref (connection);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user