A man who was sentenced to fifteen years in prison after pleading guilty to cocaine possession in Oklahoma had his case dismissed after the cocaine turned out to be powdered milk.

Codey Gregg, 26, was arrested and charged with trafficking illegal drugs in August. He pleaded guilty to possession of cocaine with intent to distribute and was sentenced to 15 years in prison last week, court records said.

However, he withdrew his plea after a lab test for the drugs turned out to be negative. According to the reports, the cocaine that was seized turned out to be milk powder. Gregg even told the judge that he acquired the milk powder from a food pantry.

Oklahoma County District Judge Timothy R. Henderson approved his withdrawal plea and dismissed the case the next day. Gregg was being held in Oklahoma County jail since his arrest in August.

According to a probable cause affidavit, officers tried to stop Gregg on Aug. 12 for riding a bike without rear lights. He was shirtless and had a backpack with him.

Instead of stopping, Greg pedaled harder and tried to get away. After evading the officers for three blocks, he ditched his bike and took off. The police found the backpack, in which there was the white powder.

"Inside the baggie was a large amount of white powder substance that I believed to be cocaine based on my training and experience," the officer stated in the affidavit. "The white powder inside the baggy later tested positive for cocaine and was a total package weight of 45.91 grams of cocaine."

He was released on Friday last week, the Oklahoman said.

cocaine
Anti-narcotics chemists test cocaine from a bag before an incineration of seized illegal drugs in La Guaira, Venezuela, Sept. 29, 2016. Reuters