Man released from prison after 48 years in court compromise