KHARTOUM, Sudan — Sudan’s official news agency says a court has ordered the release of woman on death row for apostasy.

SUNA said the Court of Cassation in Khartoum on Monday canceled the death sentence against 27-year-old Meriam Ibrahim after defense lawyers presented their case. The court ordered her release.

Ibrahim, whose father was Muslim but who was raised by her Christian mother, was convicted of apostasy for marrying a Christian.

Sudanese media reported that Ibrahim gave birth in prison in May.

Sudan’s penal code criminalizes the conversion of Muslims to other religions, a crime punishable by death.