title: memory leak during char* manipulation
body: <p>I do something like that in the loop :</p>
  
  <pre><code>char* test = "\0";
  
  test = strcat(test, somestr);
  ...
  char* tmp = strstr(test, 0, len);
  
  free(test);
  test = tmp;
  </code></pre>
  
  <p>And get memory leak. What I do wrong?</p>