OLD | NEW |
(Empty) | |
| 1 From fec31bcd452e77c10579467ca87a785b41115de6 Mon Sep 17 00:00:00 2001 |
| 2 From: Daniel Veillard <veillard@redhat.com> |
| 3 Date: Thu, 18 Nov 2010 10:07:24 +0000 |
| 4 Subject: Small fix for previous commit |
| 5 |
| 6 --- |
| 7 diff --git a/xpath.c b/xpath.c |
| 8 index 1447be5..8b56189 100644 |
| 9 --- a/xpath.c |
| 10 +++ b/xpath.c |
| 11 @@ -11765,13 +11765,14 @@ xmlXPathCompOpEvalPositionalPredicate(xmlXPathParserCo
ntextPtr ctxt, |
| 12 xmlXPathObjectPtr tmp; |
| 13 /* pop the result if any */ |
| 14 tmp = valuePop(ctxt); |
| 15 - if (tmp != contextObj) |
| 16 + if (tmp != contextObj) { |
| 17 /* |
| 18 * Free up the result |
| 19 * then pop off contextObj, which will be freed later |
| 20 */ |
| 21 xmlXPathReleaseObject(xpctxt, tmp); |
| 22 valuePop(ctxt); |
| 23 + } |
| 24 goto evaluation_error; |
| 25 } |
| 26 |
| 27 -- |
| 28 cgit v0.8.3.1 |
OLD | NEW |