[glib/wip/resources] resources: Plug a mem leak
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/resources] resources: Plug a mem leak
- Date: Wed, 11 Jan 2012 13:26:22 +0000 (UTC)
commit b40126bc0c3a268c15d4ef122db76b40430b12d5
Author: Christian Persch <chpe gnome org>
Date: Wed Jan 11 13:45:34 2012 +0100
resources: Plug a mem leak
==12449== 87 bytes in 5 blocks are definitely lost in loss record 222 of 290
==12449== at 0x402AD89: malloc (vg_replace_malloc.c:236)
==12449== by 0x407DD4A: standard_malloc (gmem.c:85)
==12449== by 0x407E0F0: g_malloc (gmem.c:159)
==12449== by 0x4093B57: g_strconcat (gstrfuncs.c:581)
==12449== by 0x4205969: do_lookup (gresource.c:202)
==12449== by 0x4206635: g_resources_get_info (gresource.c:579)
gio/gresource.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gresource.c b/gio/gresource.c
index e6f2999..e399696 100644
--- a/gio/gresource.c
+++ b/gio/gresource.c
@@ -203,6 +203,7 @@ static gboolean do_lookup (GResource *resource,
res = do_lookup (resource, prefixed_path,
lookup_flags | G_RESOURCE_LOOKUP_FLAGS_NO_ALTERNATIVE,
size, flags, data, data_size, NULL);
+ g_free (prefixed_path);
if (res)
{
/* Mark the target as localized too if we followed the "link" */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]