Fix a leak found by asan.