title: free of doubly linked list
body: <p>I am using a doubly linked list in a C program. I am getting confused about freeing the memory.</p>
  
  <ol>
  <li>Should I free the list node by node?</li>
  <li>Or, by assigning head and tail nodes to NULL?</li>
  </ol>