An Indonesian woman accused in the killing of the North Korean leader's half-brother has been released from custody by a court in Malaysia after a murder charge against her was dropped.

After the court decision to release her, 26-year-old Siti Aisyah hugged her co-accused Doan Thi Huong, a 30-year-old Vietnamese woman, and cried.

They had both been accused of poisoning Kim Jong-nam, the estranged half-brother of North Korean leader, Kim Jong-un, with liquid VX, a banned chemical weapon, at Kuala Lumpur airport in February 2017.

The court agreed to adjourn Ms Doan's testimony to allow her legal team to apply for her murder charge to be dropped.

From the outset of the case, there were suspicions that Mr Kim was the victim of a plot arranged by North Korean agents who left Malaysia in the hours after the killing and the two women had been merely pawns in a political assassination.

Kim Jong-un's estranged half-brother, Kim Jong-nam, was killed in 2017
Vietnamese national Doan Thi Huong remains on trial

Ms Siti had been working as a masseuse in Kuala Lumpur, while Ms Doan described herself as an entertainer.

"We still believe that she was merely a scapegoat," Siti Aisyah's lawyer, Gooi Soon Seng, told reporters.

"I still believe that North Korea had something to do with it."

The trial of Ms Siti was suspended in December last year as her lawyers argued with prosecutors over access to statements made by seven witnesses.

Prosecutors told the court that they had been instructed to withdraw the charge against Ms Siti.

No reason was given for the application.

Once the court released her, she was immediately rushed to an elevator and was seen being escorted to an Indonesian embassy car waiting outside the courthouse.

While the court discharged Ms Siti from the case, it rejected her lawyer's request for her to be fully acquitted, as it said that the trial had already established a prima facie case and she could be recalled if fresh evidence emerges.