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 662205 - xmlReadFile does not clean up memory if filename does not exist.
xmlReadFile does not clean up memory if filename does not exist.
Status: RESOLVED INCOMPLETE
Product: libxml2
Classification: Platform
Component: general
2.7.8
Other Windows
: Normal critical
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-19 15:07 UTC by DD
Modified: 2021-05-26 09:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description DD 2011-10-19 15:07:46 UTC
Found xmlReadFile does not clean up memory properly if the filename
passed in does not exist. 

Memory is still allocated even after i call xmlFreeDoc and
xmlCleanupParser.

Here is the order of my calls.

1)  xmlReadFile
2)  xmlFreeDoc
3)  xmlCleanupParser


If xmlReadFd is called instead there are no issues.

If filename does not exist memory should be cleaned up.
Comment 1 Nick Wellnhofer 2017-06-14 00:07:46 UTC
If you think you found a memory leak, please provide a reproducible test case and preferably some Valgrind or LeakSanitizer output.
Comment 2 André Klapper 2021-05-26 09:13:56 UTC
Closing this bug report as no further information has been provided. Please
feel free to report this to
  https://gitlab.gnome.org/GNOME/libxml2/-/issues/
if you can provide the information that was asked for in a previous comment and
if this still happens in a recent and supported version. Thanks!