Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxml2
Commits
df83c17e
Commit
df83c17e
authored
Nov 17, 2010
by
Daniel Veillard
Browse files
Fix a potential freeing error in XPath
parent
ae874211
Changes
1
Hide whitespace changes
Inline
Side-by-side
xpath.c
View file @
df83c17e
...
...
@@ -11763,11 +11763,15 @@ xmlXPathCompOpEvalPositionalPredicate(xmlXPathParserContextPtr ctxt,
if
((
ctxt
->
error
!=
XPATH_EXPRESSION_OK
)
||
(
res
==
-
1
))
{
xmlXPathObjectPtr
tmp
;
/* pop the result */
/* pop the result
if any
*/
tmp
=
valuePop
(
ctxt
);
xmlXPathReleaseObject
(
xpctxt
,
tmp
);
/* then pop off contextObj, which will be freed later */
valuePop
(
ctxt
);
if
(
tmp
!=
contextObj
)
/*
* Free up the result
* then pop off contextObj, which will be freed later
*/
xmlXPathReleaseObject
(
xpctxt
,
tmp
);
valuePop
(
ctxt
);
goto
evaluation_error
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment