1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-23 01:52:48 +03:00

Gary Coady pointed a memory leak in xmlTextReaderReadInnerXml() applied

* xmlreader.c: Gary Coady pointed a memory leak in
  xmlTextReaderReadInnerXml() applied patch fixing #323864
Daniel
This commit is contained in:
Daniel Veillard
2005-12-12 13:26:56 +00:00
parent 6a0baa0cd8
commit bc4cc9da77
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
Mon Dec 12 14:25:46 CET 2005 Daniel Veillard <daniel@veillard.com>
* xmlreader.c: Gary Coady pointed a memory leak in
xmlTextReaderReadInnerXml() applied patch fixing #323864
Sat Dec 10 12:08:28 CET 2005 Daniel Veillard <daniel@veillard.com> Sat Dec 10 12:08:28 CET 2005 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c * HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c

View File

@@ -1664,6 +1664,9 @@ xmlTextReaderReadInnerXml(xmlTextReaderPtr reader ATTRIBUTE_UNUSED)
xmlBufferFree(buff2); xmlBufferFree(buff2);
} }
resbuf = buff->content; resbuf = buff->content;
buff->content = NULL;
xmlBufferFree(buff);
return resbuf; return resbuf;
} }