That is the ending of the movie Peppermint with Jennifer Garner. What the movie is about is a drug lord’s gang members murders her husband and kid, and crooked judges, cops etc rig things to get them off, so she goes full Charles Bronson on them, and at the end the hero cop says most of the force likes what she did ( whacking the guy and those responsible) and lets her go.