What happens when you heat potassium permanganate?

It makes oxygen.