19-3503. DEFENDANT TO BE DISCHARGED. If the court directs the action to be dismissed, the defendant must, if in custody, be discharged therefrom; or if admitted to bail, his bail is exonerated, or money deposited instead of bail must be refunded to him.