[libxml2] Fix memory leak in xmlParseSGMLCatalog



commit f0904f326624d1ccfc55fca61c64ce088f41faae
Author: David King <amigadave amigadave com>
Date:   Wed Jul 14 14:14:34 2021 +0100

    Fix memory leak in xmlParseSGMLCatalog
    
    Found by Coverity.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1938806

 catalog.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/catalog.c b/catalog.c
index 6535f85c..e071b493 100644
--- a/catalog.c
+++ b/catalog.c
@@ -2359,6 +2359,7 @@ xmlParseSGMLCatalog(xmlCatalogPtr catal, const xmlChar *value,
            }
            if (!IS_BLANK_CH(*cur)) {
                /* error */
+               xmlFree(name);
                break;
            }
            SKIP_BLANKS;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]