Fix valgrind issues - significant leak on registration errors and one uninitialised variable
Merge pull request #201 from Metaswitch/valgrind_issues

[Reviewer Matt] Fix valgrind issues - significant leak on registration errors and one uninitialized variable