1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-24 06:50:08 +03:00

parser: Fix memory leak in xmlLoadEntityContent

Found by OSS-Fuzz.
This commit is contained in:
Nick Wellnhofer 2023-10-09 15:20:00 +02:00
parent 4fc5340ec5
commit 821a037038

View File

@ -8237,6 +8237,7 @@ xmlLoadEntityContent(xmlParserCtxtPtr ctxt, xmlEntityPtr entity) {
ctxt->inputTab = xmlMalloc(sizeof(xmlParserInputPtr));
if (ctxt->inputTab == NULL) {
xmlErrMemory(ctxt, NULL);
xmlFreeInputStream(input);
goto error;
}