That's why we have royal pardon for cases like this. The problem is if the man is really innocent. If very hard evidence was shown to the court, there's not much that we can't do, unless the sitting President or leader of your country gives the man the pardon by choice.