kde: Fix KUIT error handling when libxml2 is used

* gettext-tools/src/format-kde-kuit.c (format_parse): Return NULL if
xmlReadMemory returns NULL.
This commit is contained in:
Daiki Ueno 2015-12-10 12:34:17 +09:00
parent 30d474e1ce
commit 94bfe38f02

View File

@ -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);