Fix leak on cancel