mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +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);
|
||||
if (input == NULL) {
|
||||
xmlFreeParserInputBuffer(buf);
|
||||
xmlFreeParserCtxt(ctxt);
|
||||
return(NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user