Let Valgrind run & fix memory leak
Merge pull request #3 from Metaswitch/coverage

[No review required] Let Valgrind run & fix memory leak