mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
- xpath.c: found a memleak and fixed a nasty bug
Daniel
This commit is contained in:
@ -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>
|
Sat Feb 24 03:35:48 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* xmllint.[c1] : added return code errors for xmllint
|
* xmllint.[c1] : added return code errors for xmllint
|
||||||
|
4
xpath.c
4
xpath.c
@ -931,7 +931,7 @@ xmlXPathFreeValueTree(xmlNodeSetPtr obj) {
|
|||||||
if (obj == NULL) return;
|
if (obj == NULL) return;
|
||||||
for (i = 0;i < obj->nodeNr;i++)
|
for (i = 0;i < obj->nodeNr;i++)
|
||||||
if (obj->nodeTab[i] != NULL)
|
if (obj->nodeTab[i] != NULL)
|
||||||
xmlFreeNode(obj->nodeTab[i]);
|
xmlFreeNodeList(obj->nodeTab[i]);
|
||||||
|
|
||||||
if (obj->nodeTab != NULL) {
|
if (obj->nodeTab != NULL) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -2441,7 +2441,7 @@ xmlXPathCompareValues(xmlXPathParserContextPtr ctxt, int inf, int strict) {
|
|||||||
if (arg1->type == XPATH_NODESET) {
|
if (arg1->type == XPATH_NODESET) {
|
||||||
ret = xmlXPathCompareNodeSetValue(ctxt, inf, strict, arg1, arg2);
|
ret = xmlXPathCompareNodeSetValue(ctxt, inf, strict, arg1, arg2);
|
||||||
} else {
|
} else {
|
||||||
ret = xmlXPathCompareNodeSetValue(ctxt, !inf, !strict, arg2, arg2);
|
ret = xmlXPathCompareNodeSetValue(ctxt, !inf, !strict, arg2, arg1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return(ret);
|
return(ret);
|
||||||
|
Reference in New Issue
Block a user