summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gettext-tools/src/format-kde-kuit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gettext-tools/src/format-kde-kuit.c b/gettext-tools/src/format-kde-kuit.c
index afd6b15..128d05d 100644
--- a/gettext-tools/src/format-kde-kuit.c
+++ b/gettext-tools/src/format-kde-kuit.c
@@ -243,6 +243,9 @@ format_parse (const char *format, bool translated, char *fdi,
*invalid_reason =
xasprintf (_("error while parsing: %s"),
err->message);
+ free (buffer);
+ xmlFreeDoc (doc);
+ return NULL;
}
free (buffer);