Turns out it was someone else, and you convict that other person. You thought you had them, were wrong, but did then ultimately solve the case.
It happens loads too, frequently in high profile stuff on the news they'll have a suspect who's somehow close to it, arrest them, but then they're released once satisfied with their allibi or whatever.
What does that mean?