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:
parent
61f2abb1f3
commit
5eeb9d5fbb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user