title: DIA x64 & LocalFree
body: <p>I'm using DIA Sdk to extract some information from PDB files. I create the non-com DiaSourceAlt object so I must use LocalFree to free strings.</p>
  
  <p>The following piece of code works fine in x86 but, on x64, the LocalFree call corrupts the heap.</p>
  
  <pre><code>IDiaSymbol *lpSymbol;
  BSTR bStrName;
  
  ...
  hRes = lpSymbol-&gt;get_undecoratedNameEx(0x87FE, &amp;bStrName);
  if (SUCCEDED(hRes))
    LocalFree(bStrName);
  </code></pre>
  
  <p>Any suggestion? (I'm using msdia90.dll)</p>
  
  <p>Regards,
  Mauro.</p>