Corrupt former FBI agent John Connolly, who was convicted of helping famed Boston mobster James “Whitey” Bulger commit murder, could soon be released from prison after the Third District Court of Appeal overturned his murder conviction.

The court reversed Connolly’s 40-year sentence, ruling 2-1 that he was improperly convicted for his role in the 1982 slaying of World Jai Alai president John Callahan in Miami.