When Stephen Colbert signed off from “Late Show” in May, he left something for CBS — a bill for playing licensed-protected music.

During that last show, “Linus and Lucy,” owned by Lee Mendelson Film Productions (LMFP) was played by Colbert’s band.

Colbert made a joke about the music company, which he said had been suing over unauthorized uses of the song.

“Oh no, I hope this doesn’t cost CBS any money,” the host said.

Watch:

CBS reached a licensing agreement with LMFP.

The funds will go to charity.

LMFP owns the television and film song catalog of jazz artist and composer Vince Guaraldi.

Advertisement

“The proceeds from the CBS agreement will be donated by LMFP to World Central Kitchen, a not-for-profit organization that provides meals during crises,” the company said. “On the previous night’s episode, a $2.5 million donation to WCK was presented on behalf of ‘The Late Show’ to the charity’s founder, Chef José Andrés.

The specific terms were not disclosed.

LMFP said the litigation is “intended to halt a pattern of infringement that threatens to diminish the integrity of these protected works, the Guaraldi music legacy, and other cherished creative content vulnerable to misuse in the modern media landscape.”

CBS canceled Colbert’s show last year after parent company Paramount was purchased by Larry and David Ellison, the father-son media tean who are supporters of President Donald Trump.

At the time of Colbert’s cancellation, Paramount said the decision was a financial one.

Critics of the company, however, accused it of censoring Colbert who was critical of Trump and Republicans for years.