From e7d1c53a49cac5eab6324809d169ec94c87f4699 Mon Sep 17 00:00:00 2001 From: David King Date: Wed, 14 Jul 2021 11:32:57 +0100 Subject: [PATCH] Fix memory leak in xmlFreeParserInputBuffer Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938806 --- HTMLparser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/HTMLparser.c b/HTMLparser.c index 9769ad5b..ebf2641f 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -5197,6 +5197,7 @@ htmlCreateMemoryParserCtxt(const char *buffer, int size) { input = xmlNewInputStream(ctxt); if (input == NULL) { + xmlFreeParserInputBuffer(buf); xmlFreeParserCtxt(ctxt); return(NULL); }