diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-11-04 01:58:51 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-11-04 01:58:51 +0000 |
commit | c5249bab79cda68c44565e030076e4c0a78a5868 (patch) | |
tree | b755479f8def879cf2f8f707049c86d18adcd304 /lasso | |
parent | 0d66367f2892a9f1e18fde1e6984bef65c5bd732 (diff) | |
download | lasso-c5249bab79cda68c44565e030076e4c0a78a5868.tar.gz lasso-c5249bab79cda68c44565e030076e4c0a78a5868.tar.xz lasso-c5249bab79cda68c44565e030076e4c0a78a5868.zip |
Move xmlDoc release after xmlFreeXPath*
- lasso/xml/xml.c:
- in lasso_node_new_from_soap release xmlDoc (and the contained
nodes) after the XPath objects that can reference them.
Diffstat (limited to 'lasso')
-rw-r--r-- | lasso/xml/xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index 3c80ee2d..f472c4b0 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -1594,9 +1594,9 @@ lasso_node_new_from_soap(const char *soap) node = lasso_node_new_from_xmlNode(xmlnode); } - lasso_release_doc(doc); xmlXPathFreeContext(xpathCtx); xmlXPathFreeObject(xpathObj); + lasso_release_doc(doc); return node; } |