title: Basic Malloc/Free
body: <p>If I have a snippit of my program like this:</p>
  
  <pre><code>struct Node *node;
  while(...){
      node = malloc(100);
      //do stuff with node
  }
  </code></pre>
  
  <p>This means that every time I loop through the while loop I newly allocate 100 bytes that is pointed to by the node pointer right?    </p>
  
  <p>If this is true, then how do I free up all the memory that I have made with all the loops if I only have a pointer left pointing to the last malloc that happened?</p>
  
  <p>Thanks!</p>