Fix up some memory leaks
Update cpp-common submodule
Merge remote-tracking branch 'origin/master' into memory-leak-fixes
Merge remote-tracking branch 'origin/dev' into memory-leak-fixes
Merge pull request #46 from Metaswitch/memory-leak-fixes

Reviewer Graeme - Fix up some memory leaks