summaryrefslogtreecommitdiffstats
path: root/src/db-parse-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db-parse-context.c')
-rw-r--r--src/db-parse-context.c2
1 files changed, 2 insertions, 0 deletions
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