Yeast infection

My 2 years old white Frenchie had an ear infection and a UTI at the same time, which was strange. I took him to the vet last week, and he was prescribed antibiotics. Last week, I also noticed he had discharge from his penis. The medicine helped, and he is on a 14-day course of antibiotics. He has 9 more days to go. However, tonight I see the discharge again. Does anyone have experience with this with their dog?