Where a magistrate is not required by section 16 to issue a warrant for the committal to prison of a fugitive brought before him or her, the magistrate shall order the fugitive discharged.