Here is a message dump from valgrind while closing
my app, environment gnu/linux:
==23789== 5536 bytes in 553 blocks are still
reachable in loss record 106 of 111
==23789== at 0x40169890: malloc (vg_clientfuncs.c:103) ==23789== by 0x40266013: xmlStrndup (in /usr/lib/libxml2.so.2.5.4) ==23789== by 0x402660B1: xmlStrdup (in /usr/lib/libxml2.so.2.5.4) ==23789== by 0x4027AB4F: xmlStaticCopyNode (in /usr/lib/libxml2.so.2.5.4) ... ==23789== 27768 bytes in 534 blocks are still
reachable in loss record 108 of 111
==23789== at 0x40169890: malloc (vg_clientfuncs.c:103) ==23789== by 0x4027AAD2: xmlStaticCopyNode (in /usr/lib/libxml2.so.2.5.4) ==23789== by 0x4027ADD0: xmlStaticCopyNodeList (in /usr/lib/libxml2.so.2.5.4) ==23789== by 0x4027AE72: xmlCopyNodeList (in /usr/lib/libxml2.so.2.5.4) "still reachable" means while they were not deallocated, they were
referenced by some pointer. I've
called
xmlFreeDoc(m_xmldoc);
m_xmldoc = NULL; xmlCleanupParser(); TIA
-xy
|