Fix for memory leak
Correct indentation
Break up line
Merge pull request #265 from Metaswitch/sto294_memleak

[Reviewer: Matt] Fix for memory leak