cleanly free parse tree and hashtable