The former chief of Sudan's powerful intelligence service, who faced a possible death sentence for his alleged role in a coup plot, was freed under an amnesty on Wednesday, his lawyer said.

Salah Gosh "was released because of the amnesty given by President Bashir to all those who participated in the coup," Nabeel Adeeb told AFP.

Gosh walked free on the first day of the Muslim holy month of Ramadan.

He was the most high-profile figure detained last November in connection with the alleged coup plot against the 24-year regime of Omar al-Bashir.

Gosh is also one of the last to obtain amnesty, after soldiers and intelligence officers were earlier pardoned.

A witness said Gosh was greeted with jubilation when he reached his house.

"There is a crowd of people celebrating by sacrificing sheep," the witness said.

"Many of his relatives are here."

Gosh was charged in June under the criminal code and anti-terrorism law for his alleged role in the conspiracy, another lawyer, Ali Al-Saeed, said at the time.

Lawyers were seeking to have the charges thrown out before the case reached trial.

...,/.,