This happens ALL THE TIME, but when it's a female they typically let them simply resign without admitting to doing anything, and they don't get any criminal charges.
It has happened 4 times in the past 5 years at my facility alone! Each female was allowed to resign without admitting guilt, and one of them works for the state in another agency to this day... swear to god! lol! This was the same whore who was witness by another officer sucking an inmates cock in the laundry room on the midnight shift!!!
My only complaint is that if a male officer is caught having a sexual relationship with a female inmate, he is as good as fucked almost every single time.