Nunca la he oído hablar mal de los demás.

English Translation

I’ve never heard her speak ill of others.

What is the purpose of la in this sentence? Can’t you just write: Nunca he oído hablar mal de los demás?

It’s used to point out her. If you leave out la, the meaning changes to "“I’ve never heard anyone speak ill of others”.