From d816863a53a6d029ddb537bd41b3c8c5dec2b9bd Mon Sep 17 00:00:00 2001 From: Jorg Schuler Date: Fri, 9 Nov 2007 16:49:39 +0000 Subject: * src/db-parse-context.c (db_parse_context_get_m_header_internal): fixed memory leak. git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1767 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 5 +++++ src/db-parse-context.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8a6c7af..bb873fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-09 Jorg Schuler + + * src/db-parse-context.c (db_parse_context_get_m_header_internal): + fixed memory leak. + 2007-11-08 Christophe Fergeau * src/itdb_device.c: (itdb_device_requires_checksum): the iPod Touch diff --git a/src/db-parse-context.c b/src/db-parse-context.c index e4e058a..7217abf 100644 --- a/src/db-parse-context.c +++ b/src/db-parse-context.c @@ -145,8 +145,10 @@ db_parse_context_get_m_header_internal (DBParseContext *ctx, const char *id, off g_strreverse (header_id); } if (strncmp (id, header_id, 4) != 0) { + g_free (header_id); return NULL; } + g_free (header_id); /* FIXME: this test sucks for compat: if a field is smaller than -- cgit