cook somebody's goose

ˌcook somebody’s ˈgoose

(informal) ruin somebody’s plans or chances of success: He thought that the police would never find him but when he saw the officer coming towards him he realized that his goose was finally cooked.
See also: cook, goose