implement list_destroy