A man who was imprisoned for 17 years was released Tuesday, after a judge vacated his conviction on the grounds that evidence in the case was linked to a police detective whose tactics have come into question.