The man, who can’t be named for legal reasons, was being held in custody charged with allegations of assault against a woman.

But following a hearing, a court official accidentally told the jail that he could be released on bail.

Prisons such as Wandsworth have faced criticism in recent years for accidental early releases of serious offenders.