A South Korean court cancelled impeached President Yoon Suk Yeol's arrest warrant, paving the way for his release from jail after he was arrested in mid-January on insurrection charges over his brief imposition of martial law.
Yonhap News Agency reported the update on Friday.
A Seoul Central District Court spokesperson could not immediately be reached for comment.
"South Korea's rule of law is still alive," Yoon's legal counsel said, according to broadcaster YTN.
Yoon is expected to be released immediately and take part in his trial while out of detention, local media said.
Yoon's lawyers had argued the warrant issued on January 19 that has kept him in detention was invalid because the request filed by prosecutors was procedurally flawed.
He declared martial law on December 3 saying it was needed to root out "anti-state" elements but lifted the decree six hours later after parliament voted to reject it. He has said he never intended to fully impose emergency military rule.
Weeks later he was impeached by the opposition-led parliament on accusations he had violated his constitutional duty by declaring martial law.
Yoon faces a separate criminal trial and became the first sitting president to be arrested on criminal charges on January 15.

Israel carries out rare airborne raid in Lebanon; 16 killed in strikes
US skips congressional review to approve arms sale to Israel
Flash floods in Nairobi kill 23, disrupt flights at major airport
Russia hits Ukraine with drones, missiles, kills at least 10 in Kharkiv
Partial resumption of air navigation in Qatar
Kuwait and Qatar thwart fresh wave of Iranian attacks
After a week of war, Trump demands Iran's 'unconditional surrender'
Ex-rapper's party set to sweep Nepal election
