Police have admitted that errors over singer Pete Doherty's case led to charges of him breaching bail conditions being dropped by a court.
Police took too long to get Doherty to court, they admitted
The 28-year-old was due to appear before West London magistrates after he was arrested on suspected drug offences in east London on Monday.
But the charge of breaching conditional bail was dropped as he was not produced before the court within 24 hours.
Doherty had been warned by a judge he faced jail if he did not kick drugs.
The singer had previously admitted driving illegally while in possession of a number of drugs in High Street Kensington, west London, on 5 May.
On Monday, he was held in the early hours in the Tower Hamlets area hours after performing at the V Festival.
Prosecutor Anjulika Vatish said at Tuesday's hearing: "The court has no jurisdiction to deal with this matter any more."
She said Doherty, who did not appear in court, had been released.
Police admitted they had made an error in not getting him in front of the court within 24 hours.
In a statement, the Metropolitan Police said: "Senior officers from Tower Hamlets are currently reviewing processes to establish why Mr Doherty was unable to be brought before the court within the 24-hour time frame.
"It would be inappropriate to go into any further detail until the MPS is absolutely clear about the exact sequence of events."
Doherty is under bail conditions imposed at a previous hearing, when he admitted various drugs and driving offences, and is to be sentenced for these at a later date.
The singer had undergone a stomach implant to help him kick his drug habit.