fix valgrind issues
Merge branch 'valgrind' of github.com:kevinbirch/kanabo into valgrind