previous | index | next

Freeing Linked Structures

After memory is returned, it is unpredictable what their pointers point to:
  displayList(lst);
  freeList(lst);
  displayList(lst);
produces
(5 4 3 2 1)

(0 134520896 134520880 134520864 134520848)

previous | index | next