mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
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:
parent
30d474e1ce
commit
94bfe38f02
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user