test: Fix memory leaks
travis: Fail the build if any memory is leaked