If any inmate of a state correctional facility dies, is discharged, or escapes, leaving funds in the inmate's institutional account or other tangible personal property of value, a correctional facility official shall apply these funds towards the inmate's obligations as provided for in § 24-2-29. At the official's discretion, tangible personal property of value may be sold, donated to charity, discarded, returned to an heir, or used for the benefit of the Department of Corrections. If the funds exceed the inmate's obligations as provided for in § 24-2-29, the official shall give the excess balance back to the inmate or an heir of the inmate. Otherwise, the official shall deposit the excess balance in the state general fund.
SDCL 24-5-5