Thanks for query,
You have infection may be bacterial or viral due to smegma
collection below fore skin.
The open sore is due to that only & it gives you discharge & bad smell.
You should consult your doctor as you are not involved in sex & gets infection.
He will prescribe you medicine & rule out other possibility of infection origin like bad hygiene & advice for cleaning of pelvic parts.,.