That sucks, but it's not a problem with marine law. Marine law doesn't let an MP do that. It's like a doctor being bad, or a marine FFing you. A marine isn't supposed to FF you and send you shipside for 20 minutes, and a doctor isn't supposed to OD you, but it happens. They freed you when the CMP realized that MPs mistake. At that point it's on the player for not knowing.