Stink When Alive

I stink when I’m alive, but I smell good when I’m dead. What am I?

ANS-
A pig. Mmm, ham and bacon…