If, upon such examination, it is found that there is not just cause to fear that such crime will be committed by the person complained of, he shall be forthwith discharged; and if it is found that the complaint is unfounded, frivolous or malicious, the complainant may be ordered to pay the expenses of prosecution.
Mass. Gen. Laws ch. 275, § 6