A drug charge against Mackenzie Phillips was dismissed Friday after the actress successfully completed a drug diversion program.
Phillips, 50, appeared in a Los Angeles courtroom for a final hearing in the case.
The television actress pleaded guilty in October 2008 to a felony drug possession charge and agreed to enter drug treatment.
She had been arrested two months earlier by airport screeners who said they found a small amount of narcotics.
"Mackenzie deserves great credit for seizing the opportunity she was given to get clean and prove she was worthy of the dismissal of her case," her attorney Blair Berk said in a statement.
In a video posted on TMZ.com, Phillips is seen telling the judge the case changed her life.
Phillips had a history of drug abuse and was fired from the TV series "One Day at a Time" in 1982.