A man’s murder conviction has been overturned after Brooklyn prosecutors sought the vacatur, marking the seventh conviction to be upset since District Attorney Kenneth Thompson took office this year.

Roger Logan, who spent 17 years in prison for second-degree degree murder after a fatal shooting, was released in proceedings before Acting Brooklyn Supreme Court Justice Matthew D’Emic.

“In the interest of justice, I have asked the court to vacate the murder conviction of Roger Logan. After a thorough review of the case by my Conviction Review Unit and the Independent Review Panel, I have concluded that Mr. Logan’s conviction should not stand,” Thompson said in a press release.

The case is one of 57 linked to retired detective Louis Scarcella the Brooklyn prosecutor is reviewing. Scarcella denies any wrongdoing.

In its review of the Logan case, the district’s attorney office discovered an inconsistency in eyewitness testimony.

The case was the fourth Scarcella-related conviction overturned so far in Thompson’s tenure. But the district attorney has decided that 11 convictions in Scarcella cases should stand.

Harold Baker of Brooklyn represented Logan.

Assistant District Attorney Mark Hale appeared for the prosecution.