title: problems using free for a struct of dynamic arrays
body: <p>I can't undestand why it gives me a Seg-Fault while processing the following code in C:</p>
  
  <p>here is the type and declaration:</p>
  
  <pre><code>typedef struct Tcell { char* left;
               char* right;
              struct Tcell* next;} Tcell;
  
  
  Tcell* T;
  
  T=malloc(sizeof(Tcell));
  T-&gt;right=malloc(sizeof(string2) + sizeof(char)*10); //string2 is a dynamic string of chars.
  T-&gt;left=malloc(sizeof(char)*11);
  strcpy(L-&gt;right, string2); 
  L-&gt;left="_";
  free(T-&gt;left);
  free(T-&gt;right);
  free(T);
  </code></pre>
  
  <p>aaaaand i get a Seg-Fault at the first (and the second free)</p>
  
  <p>Can't seem to find the answer anywhere :S</p>