If the judge, on examination of the facts, is not satisfied that there is just cause to fear the commission of any offense, he shall immediately discharge the accused. If he judges the complaint to be unfounded, frivolous or malicious, he may order the complainant to pay the costs of prosecution, who shall thereupon be answerable to the judge, officer and witnesses for their fees as for his own debt.
15 M.R.S. § 283