The prisoner who was slipped a loaded .38-caliber revolver – while being guarded by a disgruntled cop at Brookdale Hospital in Brooklyn – also had a stash of marijuana and a razor blade in his pants, The Post has learned.

The suspect, August Clay, was passed the gun on the watch of Officer Douglas Zuniga – who was miffed about being on hospital duty, The Post reported Monday.

Zuniga, who was later suspended for a month, let the gun get through in a carton of Chinese food left by Clay’s friends – unauthorized visitors.

Fortunately, the moo goo gai gun was found by another cop before any hot-and-sour beef could erupt.

A search of Clay’s jeans also revealed a bag of weed and a razor, court documents now disclose.

Cops believe they came with the food “deliveryman.”

Clay was arrested Sept. 17 and charged with a March 8 gunpoint robbery in Flatbush.

He had been taken to Brookdale with a lung ailment, where he was guarded on Sept. 22 by Zuniga.

Zuniga, a four-year veteran, is now on modified assignment – with no gun or badge, while awaiting a departmental trial, sources said.

Clay is now charged with robbery, as well as two counts of weapons possession and unlawful possession of marijuana.