Frees a complete node list from memory, along with all the nodes contained in it. The node list is given as the only argument.
Returns nothing.