Index: third_party/libxml/src/xpath.c |
=================================================================== |
--- third_party/libxml/src/xpath.c (revision 95185) |
+++ third_party/libxml/src/xpath.c (working copy) |
@@ -11754,13 +11754,14 @@ |
xmlXPathObjectPtr tmp; |
/* pop the result if any */ |
tmp = valuePop(ctxt); |
- if (tmp != contextObj) |
+ while (tmp != contextObj) { |
/* |
* Free up the result |
* then pop off contextObj, which will be freed later |
*/ |
xmlXPathReleaseObject(xpctxt, tmp); |
- valuePop(ctxt); |
+ tmp = valuePop(ctxt); |
+ } |
goto evaluation_error; |
} |