title: Segmentation fault after free(), what are the common causes for this?
body: <p>I get a segmentation fault after <code>free</code>ing a certain pointer:</p>
  
  <pre><code>free(studentDB-&gt;name);
  </code></pre>
  
  <p>I can get its value without any errors or warnings:</p>
  
  <pre><code>printf("[DBG] studentDB-&gt;name: %s\n", studentDB-&gt;name);
  </code></pre>
  
  <p>However, as I said, the program crashes when I try to free it. What are the most common causes for a <code>free</code> command leading to a segmentation fault?</p>