Skip to content
Snippets Groups Projects
Commit 21c2610f233c authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

Fix memory leak in xmlLoadEntityContent error path

Free the input stream if pushing it fails.

Found by OSS-Fuzz.

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43743
parent 1e41fb36b272
No related branches found
No related tags found
No related merge requests found
...@@ -8088,6 +8088,7 @@ ...@@ -8088,6 +8088,7 @@
*/ */
if (xmlPushInput(ctxt, input) < 0) { if (xmlPushInput(ctxt, input) < 0) {
xmlBufferFree(buf); xmlBufferFree(buf);
xmlFreeInputStream(input);
return(-1); return(-1);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment