321. The sums due from a defendant shall be paid out of the security where the defendant furnished security and where it has not been forfeited. Where the amount of the security exceeds the sum due, the balance shall be returned to the person who paid it.
Where the defendant owes no money, the amount of the security shall be remitted to the person who paid it.