mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
Fix memory leak in xmlFreeParserInputBuffer
Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938806
This commit is contained in:
committed by
Nick Wellnhofer
parent
03bb929390
commit
e7d1c53a49
@ -5197,6 +5197,7 @@ htmlCreateMemoryParserCtxt(const char *buffer, int size) {
|
|||||||
|
|
||||||
input = xmlNewInputStream(ctxt);
|
input = xmlNewInputStream(ctxt);
|
||||||
if (input == NULL) {
|
if (input == NULL) {
|
||||||
|
xmlFreeParserInputBuffer(buf);
|
||||||
xmlFreeParserCtxt(ctxt);
|
xmlFreeParserCtxt(ctxt);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user