[glib/wip/resources] resources: Plug a mem leak in the test suite
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/resources] resources: Plug a mem leak in the test suite
- Date: Wed, 11 Jan 2012 13:26:17 +0000 (UTC)
commit 02fe43a53b6dc6d39cc0895c11b536aa84844b90
Author: Christian Persch <chpe gnome org>
Date: Wed Jan 11 13:43:06 2012 +0100
resources: Plug a mem leak in the test suite
==12121== 38 (12 direct, 26 indirect) bytes in 1 blocks are definitely lost in loss record 165 of 294
==12121== at 0x402AD89: malloc (vg_replace_malloc.c:236)
==12121== by 0x407DD4A: standard_malloc (gmem.c:85)
==12121== by 0x407E0F0: g_malloc (gmem.c:159)
==12121== by 0x407E3F2: g_malloc_n (gmem.c:361)
==12121== by 0x42491BD: gvdb_table_list (gvdb-reader.c:414)
==12121== by 0x4205F84: g_resource_enumerate_children (gresource.c:374)
==12121== by 0x804AB9E: test_resource (resources.c:146)
==12121== by 0x804AECE: test_resource_data (resources.c:193)
gio/tests/resources.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/resources.c b/gio/tests/resources.c
index 486504e..0ac6a1d 100644
--- a/gio/tests/resources.c
+++ b/gio/tests/resources.c
@@ -150,6 +150,7 @@ test_resource (GResource *resource)
g_assert (children != NULL);
g_assert (error == NULL);
g_assert (g_strv_length (children) == 2);
+ g_strfreev (children);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]