discharge of accused by magistrate