A judge may occasionally dismiss charges due to lack of evidence, but
generally speaking, the decision to charge is the prosecutor's. And
while police officers can be sued for a wrongful arrest, prosecutors are
protected by
absolute immunity, meaning that as long as they're performing a prosecutor's duties, they can't be sued.