The Beast of the City (1932)
The Beast of the City is a 1932 pre-Code gangster movie featuring cops as vigilantes and known for its singularly vicious ending. Written by W.R. Burnett, Ben Hecht (uncredited), and John Lee Mahin, and directed by Charles Brabin, the film stars Walter Huston, Jean Harlow, Wallace Ford and Jean Hersholt, and features Tully Marshall.
More at Wikipedia.