GNOME Bugzilla – Bug 633027
Memory leak in the function xmlMallocLoc ?
Last modified: 2012-08-29 21:11:46 UTC
Hi, I downloaded libreoffice sources and launched cppcheck 1.45 (the last version). It has reported a memory leak and i checked if it was a false positive. In the function xmlMallocLoc, there's a malloc for the local variable "p" but no free which causes memory leaks. I checked on the version included in libreoffice sources (libxml2-2.7.6) and in the git dev version libxml2-2.7.7. Perhaps i missed something since i'm not expert in C/C++ ? Julien.
It seems the same pb in this file with the functions : xmlMallocAtomicLoc and xmlMemStrdupLoc
Sorry i was searching in the code without really looking at the names of these functions. You can obviously close this tracker. Need sleeping i think :-)