When he quickly leaves at midnight, during the ball, his amputated leg falls off and Tim leaves it behind on the stairs.
During the ball, as he quickly exits at midnight, his amputated leg separates from him, and Tim discards it on the staircase.