title: DXGetErrorString newbie question
body: <p>I'm new to C++ and Direct X, and I was wondering what is the proper use of DXGetErrorString and DXGetErrorDescription?</p>
  
  <p>According to <a href="http://msdn.microsoft.com/en-us/library/bb173057(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/bb173057(VS.85).aspx</a> and <a href="http://msdn.microsoft.com/en-us/library/bb173056(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/bb173056(VS.85).aspx</a>, these functions return a pointer to a string. However, in all the examples I've seen on the web, they directly use the return value without freeing it afterward.</p>
  
  <p>For example:</p>
  
  <pre><code>char buf[2048];
  sprintf(buf, "Error: %s error description: %s\n",DXGetErrorString(hr),DXGetErrorDescription(hr));
  </code></pre>
  
  <p>Does that mean there is a memory leak because the memory allocated for the error string and the error description is never released ? If not, how is it released ?</p>
  
  <p>Thank you for the help !</p>