title: malloc and free when using reassign pointer
body: <p>Please, correct me if I'm wrong. In pseudo code bellow I create space for <code>j</code>. Of couse at the end I need to free space. But if <code>j</code> was reaasigned to another variable it is not good to free variables <code>anotherJob</code> spoace and I will have memory leak of <code>j</code> anyway, because code is freeing <code>anotherJob</code>. I'm right?</p>
  
  <pre><code>j=malloc(sizeof(struct jobDetails));
  ...
  j=anotherJob;
  ...
  free(j);
  </code></pre>