well its never happened to me till now

Usually if you replace the carpet it will get rid of 90% of the odor.
If it has a cloth interior, wipe it down with a rag dipped in ammonia and water.
The cloth is a lot easier to clean than carpet.

Don't ask me how I know of this.