Freebie and the Bean is a 1974 actioncomedy film about two offbeat police detectives who wreak havoc in San Francisco attempting to bring down a local organized crime boss. The picture, a precursor to the buddy cop film genre popularized a decade later, stars James Caan, Alan Arkin, Loretta Swit and Valerie Harper. Harper was nominated for the Golden Globe for New Star of the Year for playing the Hispanic wife of Alan Arkin. The film was directed by Richard Rush. An article in Rolling Stone magazine alleged that Stanley Kubrick called Freebie and the Bean the best film of 1974. Arkin and Caan would not appear in another movie together until the 2008 film adaptation of Get Smart.
After locating and shooting the primary hit man, and distracted by Beans suspicions that his wife is having an affair with the landscaper, they continue their investigation seeking a key witness against Meyers who can explain and corroborate the evidence. In the midst of this, they foil a second hit on Meyers by a backup team, leading to a destructive vehicle and foot pursuit through the city, after which they learn that Meyers is planning to fly to Miami before Monday. Tailing him, they receive word that their witness has been located and a warrant issued for Meyers arrest. Unbeknownst to them, the hooker he has picked up is actually a female impersonator and another hit man.During the arrest attempt Bean is shot by the hit man, who flees with Meyers into the stadium where the Super Bowl is underway. Freebie corners the hit man in a womens restroom and despite being shot himself, rescues a hostage and kills the hit man. The D.A. arrives after the shootings and tells Freebie that the warrant is canceled because the witness was assassinated on the way to the station. Freebie goes nuts and demands to be allowed to arrest Meyers, only to find that he died of a heart attack during the fracas. Freebie is further demoralized to learn that the evidence they gathered was planted by Meyers wife in an extramarital conspiracy with the lieutenant in command of their squad. ........
Source: Wikipedia