The guilty plea to drug possession came after prosecutors dropped a more serious charge accusing Vineberg of possessing 300 packets of heroin with the intent to sell it. A conviction could have resulted in jail time for the 58-year-old jazz musician from Canada and his possible deportation.

In court on Thursday, a prosecutor cited issues with evidence as the reason for dropping the charge. The decision came after a hearing at which two detectives admitted they had not read Vineberg his Miranda Rights before he made statements to them.

Actor's Death Sheds Light on New Heroin Wave

The death of Phiilip Seymour Hoffman is shedding light on the new wave of heroin, the power of addiction, and the boom in the drug's popularity. Marc Santia reports. (Published Tuesday, Feb 4, 2014)

Defense attorney Alex Spiro said he was "pleased with the outcome, as it is fair and just."

"Mr. Vineberg will be able to get the treatment he needs and move on with his life and career," Spiro said in a statement.

Police arrested Vineberg as they followed leads after Hoffman's Feb. 2 death in his Manhattan home from a combination of heroin, cocaine and other drugs. He was never charged with having a role in the "Capote" star's death.

Vineberg, who uses the stage name Robert Aaron, has said he and Hoffman were friends but hadn't been in touch since late last year. He was scheduled to perform Thursday night at the B.B. King Blues Club & Grill in Times Square.