单项选择题

When he opened the tin, it ______ a bad smell.

A.gave away
B.gave in
C.gave up
D.gave off