[libxml2] Memory leak in xmlFreeID (xmlreader.c)
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Memory leak in xmlFreeID (xmlreader.c)
- Date: Sun, 6 Jan 2019 13:19:56 +0000 (UTC)
commit efe8c093c408311ddbb6995c92a9e077386a57bf
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Sat Nov 24 11:39:32 2018 +0100
Memory leak in xmlFreeID (xmlreader.c)
Fix a memory leak in xmlReader's private copy of xmlFreeID. Only
affects validation with NODICT.
Found by OSS-Fuzz.
xmlreader.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/xmlreader.c b/xmlreader.c
index db310c8f..5e486c68 100644
--- a/xmlreader.c
+++ b/xmlreader.c
@@ -238,6 +238,8 @@ xmlFreeID(xmlIDPtr id) {
if (id->value != NULL)
DICT_FREE(id->value)
+ if (id->name != NULL)
+ DICT_FREE(id->name)
xmlFree(id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]