title: Can I free memory passed to SysAllocString?
body: <p>When allocating a new BSTR with SysAllocString via a wchar_t* on the heap, should I then free the original wchar_t* on the heap?</p>
  
  <p>So is this the right way?</p>
  
  <pre><code>wchar_t *hs = new wchar_t[20];
  // load some wchar's into hs...
  BSTR bs = SysAllocString(hs);
  delete[] hs;
  </code></pre>
  
  <p>Am I supposed to call delete here to free up the memory?  Or was that memory just adoped by the BSTR?</p>