fix resource / memory leaks in dmg2john.c