Corrections failed SA man before death