[glib] resources: tests: Plug a mem leak
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] resources: tests: Plug a mem leak
- Date: Sun, 5 Feb 2012 18:57:43 +0000 (UTC)
commit 74c262a8bd4a1fa6a0163ceb22667852c891c159
Author: Christian Persch <chpe gnome org>
Date: Sun Feb 5 16:12:23 2012 +0100
resources: tests: Plug a mem leak
==27820== 31 bytes in 1 blocks are definitely lost in loss record 587 of 866
==27820== at 0x402AD89: malloc (vg_replace_malloc.c:236)
==27820== by 0x4084724: standard_malloc (gmem.c:85)
==27820== by 0x40847C7: g_malloc (gmem.c:159)
==27820== by 0x4084AB4: g_malloc_n (gmem.c:361)
==27820== by 0x409D6A1: g_strdup (gstrfuncs.c:356)
==27820== by 0x4069FF7: g_get_current_dir (gfileutils.c:2544)
==27820== by 0x804BCA7: test_resource_module (resources.c:370)
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 88a9174..73229c0 100644
--- a/gio/tests/resources.c
+++ b/gio/tests/resources.c
@@ -372,6 +372,7 @@ test_resource_module (void)
path = g_strconcat (dir, G_DIR_SEPARATOR_S "libresourceplugin", NULL);
module = g_io_module_new (path);
g_free (path);
+ g_free (dir);
error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]