Fixes APLO-342: Memory leaks when using openwire with transactions