Any person committed for not finding sureties, or refusing to recognize as required by the court, may be discharged by any judge on giving the required security.