summaryrefslogtreecommitdiff
path: root/xpath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2010-11-18 11:07:24 +0100
committerDaniel Veillard <veillard@redhat.com>2010-11-18 11:07:24 +0100
commitfec31bcd452e77c10579467ca87a785b41115de6 (patch)
treedf105fb04dd11af6190d146459941e2c375de7e5 /xpath.c
parentdf83c17e5a2646bd923f75e5e507bc80d73c9722 (diff)
downloadlibxml2-fec31bcd452e77c10579467ca87a785b41115de6.tar.gz
Small fix for previous commit
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xpath.c b/xpath.c
index 1447be52..8b561891 100644
--- a/xpath.c
+++ b/xpath.c
@@ -11765,13 +11765,14 @@ xmlXPathCompOpEvalPositionalPredicate(xmlXPathParserContextPtr ctxt,
xmlXPathObjectPtr tmp;
/* pop the result if any */
tmp = valuePop(ctxt);
- if (tmp != contextObj)
+ if (tmp != contextObj) {
/*
* Free up the result
* then pop off contextObj, which will be freed later
*/
xmlXPathReleaseObject(xpctxt, tmp);
valuePop(ctxt);
+ }
goto evaluation_error;
}