GNOME Bugzilla – Bug 662205
xmlReadFile does not clean up memory if filename does not exist.
Last modified: 2021-05-26 09:13:56 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.
If you think you found a memory leak, please provide a reproducible test case and preferably some Valgrind or LeakSanitizer output.
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!