Skip to content

Commit

Permalink
Memory leak in xmlFreeID (xmlreader.c)
Browse files Browse the repository at this point in the history
Fix a memory leak in xmlReader's private copy of xmlFreeID. Only
affects validation with NODICT.

Found by OSS-Fuzz.
  • Loading branch information
nwellnhof committed Jan 6, 2019
1 parent f8a8c1f commit efe8c09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xmlreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit efe8c09

Please sign in to comment.