Add ptab_free function
Add valgrind script and have Travis run it