He had served nine years in prison , including two on death row , when he was released by a judge and pardoned by the governor .