free element
fix sigfault, list_destroy is not needed because the data is only an integer