I stink while living but smell good when dead. What am I?

A pig