A Philippine court on Friday acquitted former senator Leila De Lima, one of the fiercest critics of ex-President Rodrigo Duterte, of a criminal charge stemming from allegations that as a cabinet minister she received money from drug dealers.

De Lima, 63, has been in detention for the past six years and despite her acquittal, De Lima will not immediately be released because of another case pending in court.

De Lima was charged in 2017, just a few months after she launched a senate investigation into Duterte’s “war on drugs”, during which thousands of users and dealers were killed, many by police or in mysterious circumstances.