BALLSTON SPA — A Cohoes man who urinated on his dangerously intoxicated friend before leaving him to die on the front lawn of his grandmother's home will serve six months in jail.

Samuel Heroux, 22, will serve his sentence in Saratoga County Jail as part of a plea deal he reached with the district attorney's office in the 2017 death of 19-year-old Liam McGlinchey.

But while Heroux avoided prison time, his co-defendant, Isaiah DePiazza, 19, who initially agreed to cooperate with prosecutors, was sentenced to 1 to 3 years in state prison.

In a court appearance Thursday, Judge James A. Murphy III and the victim's mother spoke with outrage about a video they said Heroux made of himself urinating on McGlinchey at the end of a night of drinking by the two men who were joined by DePiazza.

DePiazza, who like Heroux pleaded guilty to criminally negligent homicide, had previously been expected to be sentenced to probation. However, Murphy sentenced him to prison after he determined DePiazza violated terms of his pretrial release agreement.

Heroux and DePiazza left McGlinchey outside his 91-year-old grandmother's home in Clifton Park during the early morning hours of Aug. 25, 2017.

"Dumping Liam and urinating on him and filming the urination, seeing foam from dying Liam's mouth — instead of doing something, you leave," Murphy told Heroux. "A 911 call, a knock on the door, a drop at the hospital, a call for help would have saved his life.

"The failure to act and care about anyone but yourself, the apathy and disregard for another person's life is your pattern of behavior," the judge said.

Heroux pleaded guilty June 20 to criminally negligent homicide, which carries a maximum sentence of four years in state prison.

Instead, Heroux will serve his six-month sentence in the local jail, followed by five years of post-release supervision.

Before Murphy imposed sentence, McGlinchey's sister assailed Heroux for "actions vile, despicable, thoughtless and heartless."

In a recorded video shown in court, Charlotte McGlinchey said that her brother was a gentle giant whose death traumatized his family because Heroux and DePiazza left her brother "as if he were garbage."

"I lost my brother and best friend," she said. "Every time you inhale, I hope you feel the breaths Liam struggled to take."

McGlinchey was born in New York City but spent a number of years in Ireland. He returned to the U.S. and was living with his grandmother when he died. Police said McGlinchey, who had been drinking heavily, was unable to walk and kept falling, so his friends left him on the lawn outside the home.

Toxicology reports from his autopsy showed McGlinchey had a blood alcohol content of 0.40 percent, a level that medical experts say can be high enough to cause death.

While in Ireland, McGlinchey worked on the family farm as a turf cutter. In Clifton Park, he had been a warehouse worker at Hannaford supermarket.

The teen enjoyed spending time with his family, his obituary said. He is survived by his mother, father, brother, sister, grandmothers, aunts and uncles.