SAN DIEGO (AP) - Attorneys for a decorated Navy SEAL facing a murder trial in the death of an Islamic State prisoner will try again Friday to have the case dismissed after their client was unexpectedly freed from custody.
A military judge released Special Operations Chief Edward Gallagher from custody on Thursday, which drew gasps in a San Diego courtroom.
The judge, Capt. Aaron Rugh, said releasing Gallagher was a remedy for prosecutors interfering with his Sixth Amendment right to counsel.
Gallagher's lawyers have condemned the prosecution for launching an unusual effort to find the source of news leaks in the politically charged case by embedding tracking code in emails sent to defense attorneys and a Navy Times journalist.
RELATED: Military judge releases Navy SEAL accused of murder before his trial
Defense attorney Tim Parlatore had accused prosecutors of a "rogue, relentless, and unlawful cyber campaign" that may have violated attorney-client privilege and hurt his client's ability to get a fair trial.
Gallagher's wife, Andrea, who has led a campaign to free her husband, put her hands to her face and burst into tears.
"I feel like it's a small victory on the way to the larger victory," Andrea Gallagher said outside court while her husband stood quietly by her side in his Navy whites.
He declined to comment.
A spokesman for the Navy prosecutors also wouldn't comment on Gallagher's freedom or developments at the hearing, which continues Friday.
RELATED: Rep. Duncan Hunter rallies support for accused Navy SEAL on Capitol Hill
Gallagher has pleaded not guilty to murder in the death of an injured teenage militant in Iraq in 2017 and attempted murder for allegedly picking off civilians from a sniper's perch.
His platoon supervisor, Lt. Jacob Portier, is fighting charges of conduct unbecoming an officer for allegedly conducting Gallagher's re-enlistment ceremony next to the militant's corpse.
Efforts to get the case thrown out come as President Donald Trump considers pardoning several service members accused of war crimes, including Gallagher, who faces trial June 10.
Evidence at the hearing showed prosecutors enlisted a Naval Criminal Investigative Service intelligence specialist to conduct criminal background checks on three civilian lawyers, including Parlatore, and a journalist with the Navy Times who has broken several stories based on leaked documents.
On Thursday, Rugh said investigators told him privately that they planned to embed code in what he believed to be a court document to help them find the source of leaks but the judge said he didn't have the power to authorize it and wasn't told they planned to target emails sent to the defense lawyers or a journalist.
The lead prosecutor downplayed the move at a related hearing earlier in the day. Cmdr. Christopher Czaplak said the code embedded in the email recorded nothing more than where and when messages were opened by recipients.
Czaplak said the tracking ended May 10 after he was confronted by defense lawyers who discovered the code in an unusual logo of an American flag with a bald eagle perched on the scales of justice beneath Czaplak's signature.
On Thursday, Czaplak said the code was similar to what marketers use to see when an email is opened and on what device.
"It's still a web bug and it's still unethical," countered defense lawyer Jeremiah J. Sullivan III, who represents Portier.
The judge in Portier's case, Capt. Jonathan Stephens, said from what he had seen the tracking effort wasn't able to view the contents of any emails.
Several experts testified that the code couldn't generally be used to identify a specific person or capture content.