Plug a mem leak

==6793== 19 (8 direct, 11 indirect) bytes in 1 blocks are definitely lost in loss record 640 of 1,423
==6793==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
==6793==    by 0x4057094: g_malloc (gmem.c:134)
==6793==    by 0x40573DB: g_malloc_n (gmem.c:281)
==6793==    by 0x4073D1B: g_strsplit (gstrfuncs.c:2436)
==6793==    by 0x4224A89: initable_init (gdbusserver.c:1040)
==6793==    by 0x41A73F9: g_initable_init (ginitable.c:105)
==6793==    by 0x41A759B: g_initable_new_valist (ginitable.c:218)
==6793==    by 0x41A743E: g_initable_new (ginitable.c:138)
==6793==    by 0x42238F5: g_dbus_server_new_sync (gdbusserver.c:484)

Bug #628328.
This commit is contained in:
Christian Persch 2010-08-30 10:16:31 -04:00 committed by Matthias Clasen
parent 6879256f36
commit 802c25832c

View File

@ -1096,6 +1096,9 @@ initable_init (GInitable *initable,
goto out; goto out;
out: out:
g_strfreev (addr_array);
if (ret) if (ret)
{ {
if (last_error != NULL) if (last_error != NULL)