After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 451643 - xmlTextWriterStartDocument() can leak if call several times
xmlTextWriterStartDocument() can leak if call several times
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-27 15:12 UTC by Dodji Seketeli
Modified: 2007-07-04 15:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fixes a leak in xmlTextWriterStartDocument() (624 bytes, patch)
2007-06-27 15:14 UTC, Dodji Seketeli
none Details | Review

Description Dodji Seketeli 2007-06-27 15:12:51 UTC
xmlTextWriterStartDocument() can leak if called several times consecutively.
Calling xmlFreeTextWriter() once after several calls of xmlTextWriterStartDocument() does not free all the memory.

Please find attached to this bug a patch that shows and hopefuly fixes the problem.
Comment 1 Dodji Seketeli 2007-06-27 15:14:59 UTC
Created attachment 90758 [details] [review]
fixes a leak in xmlTextWriterStartDocument()
Comment 2 Daniel Veillard 2007-07-04 15:43:58 UTC
Okay, makes sense, applied and commited on SVN,

  merci :-)

Daniel