title: Strdup() and strcpy
body: <pre><code>void x( )
  {
      strcpy(a, strdup(p) );
  }
  </code></pre>
  
  <p>(error) Allocation with strdup, strcpy doesn't release it</p>
  
  <p>Can anyone tell me what's wrong with above statement and why I am getting this error?</p>