Fix wrong free, and fix useless g_slist_concat