Inmate released by mistake