Ah yes, I noticed that attacks the guards when I teleport him out.
He hasn't much of a chance, though. Also, strangely, when I tried to heal him, he became hostile and the guards allied with me.
The prison is a bit strange, tbh. - it seems almost impossible to help the prisoners without suffering a pretty strong reputation hit (-2) or letting them meet their doom by hands of the guards.
Also they have a tendency to turn against me, similarly to the orc, if I try to help them against the guards.