Lieutenant Coutoules was an informer. Capitano Benucci killed him because he considered him to be a double agent. But there is another informer, Captain Long.
The information is passed in the normal mail.
At the end, everyone is able to escape during the "Hamlet" play. Long is left behind bound and gagged. He is shot by Benucci.