Whenever an inmate is paid for his labor, performed under the supervision of the Department of Corrections or any other public agency, and is discharged, all sums due him shall be paid upon release. If an inmate is released on parole all sums due him shall be paid to the inmate as prescribed by the director.
Ca. Pen. Code § 2713