19. The surety may obtain a discharge by depositing in the hands of the clerk the amount of the costs and indemnity due to the party or the witness, with, in addition, the duty payable upon judicial deposits. The amount so deposited shall be paid by the clerk to the person entitled thereto, upon production of the copy of the order which was served upon him.
R. S. 1964, c. 22, s. 26.