Was overriding list's link next/prev after it was added to the list. Also, no need to set next/prev to NULL when adding a link to the list.
Was overriding list's link next/prev after it was added to the list. Also, no need to set next/prev to NULL when adding a link to the list.