Escaping from prison
In the UK there is an offence of escaping from lawful custody (probably not the correct legal term, lawyer-types, please advise). Basically if you have been sentenced to a prison term and "break" out of prison that is an offence. BUT, if the doors are unlocked or open, and you just sort of walk out, that is not an offence (or maybe now is a lesser offence).
I remember seeing one TV drama-documentary where the main character merely followed other prisoners who had escaped, and therefore was not guilty of the offence of breaking out of prison. (Kind of like the difference between 'breaking and entering' a property and trespass. In the first you have to do some damage to effect entry, in the second, if the gate was open and you just walked through, all the landowner can do is ask you to leave.)
Just walking out of prison while a film was being made does seem a little bit lax by the authorities.