Fix leaking AsChains
Merge pull request #118 from Metaswitch/sto364

[No review required] Fix leaking AsChains