If your sourdough starter discard is starting to turn black and smells bad then it is safer to throw it away. Sourdough starter generally smells sometimes like vinegar, and sometimes it has a sweeter smell but if it is anything outside the norm and you can see very clear black spots then it is likely that the starter is starting to get moldy. If that happened it is most likely you did not feed the starter often enough.