title: How free memory after of realloc
body: <p>Is correct ways to free up memory in this code?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  int main( void ){
  
      char *string1, *string2;
      string1 = (char*) malloc(16);
  
      strcpy(string1, "0123456789AB");
  
      string2 = realloc(string1, 8);
  
      printf("string1 Valor: %p [%s]\n", string1, string1);
      printf("string2 Valor: %p [%s]\n", string2, string2);
  
      free(string1);
      free(string2);
      return 0;
  }
  </code></pre>
  
  <p>Since the two pointers point to the same direction</p>