NEW YORK — The case against a former Miss Russia charged with forging prescriptions to get painkillers in New York has been dismissed after she spent two sometimes rocky years in drug treatment.

Anna Malova said she’s learned her lesson as she left a Manhattan court Tuesday.

The special narcotics prosecutor’s office wanted Malova’s treatment extended another three months. But the judge said Malova had met the requirements to get the charges dropped by going through rehabilitation.

Malova went into treatment in June 2011. Authorities said she sometimes hoarded pills and caused trouble in the program.