Address Sanitizer reports memory leak
Please help to confirm this memory leak reported by Address Sanitizer. Version: xml2 2.9.2
Looks like same issue is there in the latest version also. I have checked the code in both in xml2 2.9.2 and xml2 2.9.8 I could not find the related memory fix.
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0xf726ee54 in __interceptor_malloc ../../../asan/asan_malloc_linux.cc:38
#1 0x8073dc6 in malloc syslib/frame_malloc.c:820
#2 0xf6cfb981 in xmlNewNs__internal_alias /home/libxml2-2.9.2/tree.c:751
#3 0xf6dbb939 in xmlSAX2StartElementNs__internal_alias /home/libxml2-2.9.2/SAX2.c:2301
#4 0xf6cf0943 in xmlParseStartTag2 /home/libxml2-2.9.2/parser.c:9707
#5 0xf6cf5dce in xmlParseTryOrFinish /home/libxml2-2.9.2/parser.c:11478
#6 0xf6cf7a84 in xmlParseChunk__internal_alias /home/libxml2-2.9.2/parser.c:12383
Edited by Piotr Drąg