1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

- xpath.c: found a memleak and fixed a nasty bug

Daniel
This commit is contained in:
Daniel Veillard 2001-02-24 03:07:03 +00:00
parent f7cd48176c
commit bbd51d512b
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Sat Feb 24 14:07:52 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: found a memleak and fixed a nasty bug
Sat Feb 24 03:35:48 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xmllint.[c1] : added return code errors for xmllint

View File

@ -931,7 +931,7 @@ xmlXPathFreeValueTree(xmlNodeSetPtr obj) {
if (obj == NULL) return;
for (i = 0;i < obj->nodeNr;i++)
if (obj->nodeTab[i] != NULL)
xmlFreeNode(obj->nodeTab[i]);
xmlFreeNodeList(obj->nodeTab[i]);
if (obj->nodeTab != NULL) {
#ifdef DEBUG
@ -2441,7 +2441,7 @@ xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict) {
if (arg1->type == XPATH_NODESET) {
ret = xmlXPathCompareNodeSetValue(ctxt, inf, strict, arg1, arg2);
} else {
ret = xmlXPathCompareNodeSetValue(ctxt, !inf, !strict, arg2, arg2);
ret = xmlXPathCompareNodeSetValue(ctxt, !inf, !strict, arg2, arg1);
}
}
return(ret);