1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixed the validation of sequences content model when some of the blocks

* xmlregexp.c xmlschemas.c: fixed the validation of sequences
  content model when some of the blocks have min or max, and a couple
  of bugs found in the process.
* result/schemas/list0* test/schemas/list0*: added some specific
  regression tests
Daniel
This commit is contained in:
Daniel Veillard
2002-10-16 14:08:14 +00:00
parent a2e8c5ce8b
commit 3237023d6a
22 changed files with 161 additions and 21 deletions

View File

@ -2335,8 +2335,10 @@ xmlRegFreeExecCtxt(xmlRegExecCtxtPtr exec) {
if (exec->inputStack != NULL) {
int i;
for (i = 0;i < exec->inputStackNr;i++)
xmlFree(exec->inputStack[i].value);
for (i = 0;i < exec->inputStackNr;i++) {
if (exec->inputStack[i].value != NULL)
xmlFree(exec->inputStack[i].value);
}
xmlFree(exec->inputStack);
}
xmlFree(exec);