summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/db-parse-context.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a6c7af..bb873fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-09 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+ * src/db-parse-context.c (db_parse_context_get_m_header_internal):
+ fixed memory leak.
+
2007-11-08 Christophe Fergeau <christophe@anevia.com>
* 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