You are correct... sorry to say it. If its only a few male parts, then cut them off, grow it out, and smoke the shit, haha. Long as you control the male parts you'll be fine, maybe have a few seeds in there but whatever.

Really though you want to fix the light leaks, for 4 weeks into flower it should be producing quite a bit more than that. Check out my thread in basic growing called "23 days flowering....." and so on. I just posted some new pictures today of a plant that has been flowering for 36 days. If it isn't getting a solid 12 hours of uninterrupted darkness then it won't flower properly and you'll have worse issues than just a herm.