node_list: Fix memory corruption

The corruption occured if you removed the last node from the list
and later add a new node to the list.
1 file changed