SAN LEANDRO — The Alameda County district attorney’s office has charged a man with three felonies after an accidental gun discharge over the weekend led police to find drugs and cash for sale.

Around 11:30 p.m. Saturday, a first-floor apartment resident in the 100 block of Dutton Avenue called police when he realized a bullet from overhead had just damaged his ceiling.

Arriving officers spoke to second-floor resident Minh Huynh, 29, who said he had been handling his loaded firearm when it went off.

Officers recovered the gun, but also found several other firearms inside. A records check found at least two of those guns had been reported stolen.

After officers found Huynh in possession of drugs packaged for sale, cash and drug paraphernalia, he was arrested and taken to Santa Rita Jail.

“Negligent discharge of a firearm is a crime, even if done so accidentally,” San Leandro Police Lieutenant Isaac Benabou said in a statement.

“There are no second chances if someone’s inattention seriously injures or kills a person. We are thankful in this case that no one was hurt. Firearms must be treated as loaded at all time and should never be handled outside an approved environment.”

A records check Tuesday night did not show Huynh in custody.

Contact George Kelly at 408-859-5180.