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

fixing #70166 Daniel

* valid.c: fixing #70166
Daniel
This commit is contained in:
Daniel Veillard
2002-02-08 13:37:46 +00:00
parent c575b997d8
commit d455d79d84
2 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,11 @@
Fri Feb 8 14:37:05 CET 2002 Daniel Veillard <daniel@veillard.com>
* valid.c: fixing #70166
Fri Feb 8 14:31:24 CET 2002 Daniel Veillard <daniel@veillard.com>
* valid.c: fixing #70077
Fri Feb 8 14:24:02 CET 2002 Daniel Veillard <daniel@veillard.com>
* Copyright Makefile.am README configure.in libxml.spec.in:

View File

@ -4935,6 +4935,7 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
int nb_valid_elements = 0;
const xmlChar *elements[256];
int nb_elements = 0, i;
xmlChar *name;
xmlNode *ref_node;
xmlNode *parent;
@ -4987,6 +4988,7 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
test_node->parent = parent;
test_node->prev = prev;
test_node->next = next;
name = test_node->name;
if (prev) prev->next = test_node;
else parent->children = test_node;
@ -5021,5 +5023,11 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **list,
parent->children = parent_childs;
parent->last = parent_last;
/*
* Free up the dummy node
*/
test_node->name = name;
xmlFreeNode(test_node);
return(nb_valid_elements);
}