A man who was facing trial for possession of over €1 million in heroin has had his case dismissed after a judge ruled a search warrant was not legal.

In a judgement delivered at Dublin Circuit Criminal Court, Judge Mary Ellen Ring ruled a search warrant granted to carry out a search on the home of Stephen Reddington (30) was not in accordance with law.

The judge said the fact that garda surveillance had observed known drug users frequenting the house was not reasonable grounds on its own as drug clinics are also frequented by known drug users.

She also noted that there was no inquiry made by the District Court judge as to the reliability of the confidential information received by Garda Kevin Dingley.

The court heard that the warrant was granted at Dublin District Court by Judge John Lindsay on the basis of sworn information given by Garda Dingley.

Mr Reddington of Wheatfield Avenue, Clondalkin was facing trial on six drugs related offences. He was charged with possession for sale or supply of €1,002,780 of heroin at his home on November 11, 2011.

His trial was set for December but earlier this month his defence counsel, led by Pádraig Dwyer SC, brought an application to dismiss the charges on the basis there was insufficient evidence.

Judge Ring granted the defence application after ruling that she was not satisfied that the search warrant was granted in accordance with law.