Hi Andrew,
Hopefully you can see it with this test code on Github:
https://github.com/bhermanmit/xml_checkAll it does is open and closes a file.
Should compile by typing: make
When I run with valgrind: valgrind --leak-check=full --show-reachable=yes ./xml
I get the following output:
==17550== Memcheck, a memory error detector
==17550== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==17550== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==17550== Command: ./xml
==17550==
==17550==
==17550== HEAP SUMMARY:
==17550== in use at exit: 1 bytes in 1 blocks
==17550== total heap usage: 3,151 allocs, 3,150 frees, 416,679 bytes allocated
==17550==
==17550== 1 bytes in 1 blocks are definitely lost in loss record 1 of 1
==17550== at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17550== by 0x478B3A: __fox_m_fsys_array_str_MOD_str_vs (in /home/bherman/Documents/xml_check/xml)
==17550== by 0x4C01A2: __m_common_namespaces_MOD_checknamespaces (in /home/bherman/Documents/xml_check/xml)
==17550== by 0x45B35B: open_tag.2407 (in /home/bherman/Documents/xml_check/xml)
==17550== by 0x446262: __m_sax_parser_MOD_sax_parse (in /home/bherman/Documents/xml_check/xml)
==17550== by 0x43E8B2: __m_dom_parse_MOD_runparser (in /home/bherman/Documents/xml_check/xml)
==17550== by 0x43E5F6: __m_dom_parse_MOD_parsefile (in /home/bherman/Documents/xml_check/xml)
==17550== by 0x4013B9: MAIN__ (in /home/bherman/Documents/xml_check/xml)
==17550== by 0x401404: main (in /home/bherman/Documents/xml_check/xml)
==17550==
==17550== LEAK SUMMARY:
==17550== definitely lost: 1 bytes in 1 blocks
==17550== indirectly lost: 0 bytes in 0 blocks
==17550== possibly lost: 0 bytes in 0 blocks
==17550== still reachable: 0 bytes in 0 blocks
==17550== suppressed: 0 bytes in 0 blocks
==17550==
==17550== For counts of detected and suppressed errors, rerun with: -v
==17550== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)
Thanks,
Bryan