Salling's arrest was confirmed by Officer Tony Im of the Police Department, but Im would not say what the actor was arrested for. Im confirmed to the Los Angeles Times that investigators were searching Salling's home for child porn.

Salling was facing a felony charge and was held on $20,000 bail, according to the Los Angeles County Sheriff's Department's inmate records. He was released at 2:26 p.m., records showed.

In March, Salling reportedly paid an ex-girlfriend $2.7 million after she confronted him about an alleged sexual battery and said he knocked her to the ground, according to court documents cited by People.com.

Salling, 33, is best known for his role in the hit television series "Glee," in which he played bullying football player Noah "Puck" Puckerman.

The actor was a regular for the show's first four seasons and became a recurring guest star as the series' cast evolved.

KTLA's Steve Bien contributed to this report.

Patrol vehicles are seen during an LAPD Internet Crimes Against Children task force search of a home in Sunland on Dec. 29, 2015, in a photo provided to KTLA by a neighbor.