expanded test found and fixed the leak exposed by Microsoft regtests
* runsuite.c: expanded test
* xmlregexp.c: found and fixed the leak exposed by Microsoft regtests
Daniel
diff --git a/xmlregexp.c b/xmlregexp.c
index 30ffdef..ee635f1 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -749,7 +749,9 @@
xmlRegFreeRange(atom->ranges[i]);
if (atom->ranges != NULL)
xmlFree(atom->ranges);
- if (atom->type == XML_REGEXP_STRING)
+ if ((atom->type == XML_REGEXP_STRING) && (atom->valuep != NULL))
+ xmlFree(atom->valuep);
+ if ((atom->type == XML_REGEXP_BLOCK_NAME) && (atom->valuep != NULL))
xmlFree(atom->valuep);
xmlFree(atom);
}