Memory Leak at xmlReadMemory/xmlParseMemory
In GXml there is a report on memory leaks, but tracing the problem found the issue at xmlReadMemory
and xmlParseMemory
, Valgrind reports:
Direct leak of 176 byte(s) in 1 object(s) allocated from:
#0 0x7faf24cab867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7faf240a833e in xmlNewDoc (/lib/x86_64-linux-gnu/libxml2.so.2+0x6233e)
Indirect leak of 4 byte(s) in 1 object(s) allocated from:
#0 0x7faf24cab867 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
#1 0x7faf24129b05 in xmlStrndup (/lib/x86_64-linux-gnu/libxml2.so.2+0xe3b05)
Need to trace more deep on both methods in order to find the problem, but maybe any one else can help here.
Edited by Daniel Espinosa Ortiz