Fix a leak, was not able to tail recurse correctly due to holding a reference to msg