Fix a memory leak in the destroy pathway.
Add Travis CI config.