Fixed dlist_insert memory leaks