An Egyptian court has dropped a corruption charge against Hosni Mubarak, the president ousted in the 2011 uprising.
His lawyer said the ruling would clear the way for Mubarak's release from jail soon.
Mubarak, who ruled Egypt for 30 years, was arrested soon after his overthrow and became the first Arab leader to face trial.
He appeared in a courtroom cage to face charges that ranged from corruption to complicity in the murder of protesters.
More than a year on, the only legal grounds for Mubarak's continued detention rest on another corruption case, which his lawyer Fareed el-Deeb said would be settled swiftly.
"All we have left is a simple administrative procedure that should take no more than 48 hours. He should be freed by the end of the week," Mr Deeb said.
Without confirming that Mubarak would be freed, a judicial source said the former leader would spend at least another two weeks behind bars before the criminal court made a final decision in the outstanding corruption case against him.
That case related to gifts that Mubarak, 85, is accused of accepting during his presidency.
Mubarak has recently repaid money equivalent to the value of those gifts, meaning he could potentially be freed, but the court could choose to extend his sentence on other grounds or come up with new cases.
Mubarak, along with his interior minister, was convicted and sentenced to life in prison last year for failing to stop the killing of protesters in the revolt that swept him from power.
He still faces a retrial in that case after appeals from the prosecution and defence, but this would not require him to stay in jail.
Mubarak did not appear at a hearing in the case on Saturday.
He was also absent from today's session.