Fixed a memory leak in the list header