Inmate heroin overdose leads to investigation