add missing delete_list() after using list_element.

For memory leaks.