Blob Blame History Raw
From f7ec29239b66123c29d84f810070c23855061d3f Mon Sep 17 00:00:00 2001
From: Daniel Veillard <veillard@redhat.com>
Date: Thu, 18 Nov 2010 11:07:24 +0100
Subject: [PATCH] Small fix for previous commit
To: libvir-list@redhat.com

Signed-off-by: Daniel Veillard <veillard@redhat.com>
---
 xpath.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xpath.c b/xpath.c
index 5474849..eef69f7 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;
 	    }
 
-- 
1.7.11.4