Pakistan's Supreme Court has rejected on technical grounds appeals lodged by the government seeking the re-arrest of the head of an Islamic charity.
The government challenged a ruling to free Hafiz Mohammad Saeed, whose charity is suspected of being linked to a group accused of the Mumbai attacks.
The charity denies any links with militants involved in the attacks.
Lawyers for the Pakistani government said they would re-file the appeal after removing the technical flaws.
Mr Saeed was released by a court in June which found there was insufficient evidence for his continued detention.
He is the founder of Jamaat-ud-Dawa, a charity accused of being a front for Lashkar-e-Taiba, the group India says was behind last November's attacks in Mumbai.
India had calling Mr Saeed's release "regrettable".
More than 170 people died in the Mumbai (Bombay) attacks last November, including nine gunmen.
Mr Saeed denies the charges against him. He was placed under house arrest in December after the UN added him to a list of people and groups linked to al-Qaeda or the Taliban.
Founded in the late 1980s, Lashkar-e-Taiba is one of most feared groups fighting against Indian control in Kashmir.
After it was banned in Pakistan in 2002, the organisation divided itself into Jamaat-ud-Dawa and Lashkar-e-Taiba, correspondents say.
Jamaat-ud-Dawa works as an Islamic charity all over Pakistan.