Jan is right. If she's not spayed, it's probably Pyometria, which can be deadly. Pyometria causes a smelly discharge. It is an infection of the uterus. The only cure is spaying.