Fix memory leaks and cope with NULL aor_data.
Merge pull request #19 from Metaswitch/3p_reg_forward_registers

Fix memory leaks and cope with NULL aor_data.
Merge branch 'dev' of github.com:Metaswitch/sprout into multiple-as-chain