Jail governors stepped in to prevent a quarter of inmates being freed