title: Does a memory leak at unload of a DLL cause a leak in the host process?
body: <p>Consider this case:</p>
  
  <pre><code>dll = LoadDLL()
  dll-&gt;do()
  
  ...
  void do() {
      char *a = malloc(1024);
  }
  ...
  
  UnloadDLL(dll);
  </code></pre>
  
  <p>At this point, will the 1k allocated in the call to malloc() be available to the host process again?
  The DLL is statically linking to the CRT.</p>