1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-13 20:58:16 +03:00

Fix memory leak in xmlSchemaValAtomicType

Don't collapse anyUris twice.

Closes #104.
This commit is contained in:
Nick Wellnhofer 2019-10-14 16:35:00 +02:00
parent 61f2abb1f3
commit 5eeb9d5fbb

View File

@ -2925,7 +2925,7 @@ xmlSchemaValAtomicType(xmlSchemaTypePtr type, const xmlChar * value,
if (*value != 0) {
xmlURIPtr uri;
xmlChar *tmpval, *cur;
if (normOnTheFly) {
if ((norm == NULL) && (normOnTheFly)) {
norm = xmlSchemaCollapseString(value);
if (norm != NULL)
value = norm;