Valgrind reports invalid free()'s due to the xml_rootparent construct in 0.0.1. When using the xmlDoc's root node as xml_rootparent it seems fine.
To view output:
$ make clean; make CFLAGS="-g";
$ valgrind --tool=memcheck --leak-check=yes ./xmlfs mnt/ -f < test.xml