summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 74dc5ed)
raw | patch | inline | side by side (parent: 74dc5ed)
author | Florian Forster <octo@huhu.verplant.org> | |
Mon, 11 Jan 2010 14:46:30 +0000 (15:46 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 11 Jan 2010 14:46:30 +0000 (15:46 +0100) |
src/curl_xml.c | patch | blob | history |
diff --git a/src/curl_xml.c b/src/curl_xml.c
index 78051667394836ccf141d706f0f544a6763e6076..5fd3f59ae1ec5bfeff38d8b2b30285e1af685f0e 100644 (file)
--- a/src/curl_xml.c
+++ b/src/curl_xml.c
/* instance has to be an xpath expression */
if (xpath->instance != NULL)
{
+ assert (instance_node_obj == NULL);
instance_node_obj = cx_evaluate_xpath (xpath_ctx, BAD_CAST xpath->instance);
if (instance_node_obj == NULL)
continue; /* error is logged already */
sfree(vl.values);
if (instance_node_obj != NULL)
+ {
xmlXPathFreeObject (instance_node_obj);
- }
+ instance_node_obj = NULL;
+ }
+ } /* for (i = 0; i < total_nodes; i++) */
/* free up the allocated memory */
xmlXPathFreeObject (base_node_obj);