Made travis run valgrind.
Add a memory leak to test valgrind.
Fix memory leak.