title: How to decipher memory leak reported by Visual Leak Detector
body: <p>Can anyone help decipher the memory leak reported by Visual Leak Detector?</p>
  
  <p>Is it somewhere in openssl?</p>
  
  <p>Also why does it refer to files on drive <code>f:</code> when there is no such drive mapped?</p>
  
  <p>A similar <a href="https://stackoverflow.com/questions/20067167/memory-leaks-if-using-boostasioio-servicerun-in-separate-thread">post</a> suggests it might be something to do with memory allocated once for initialization.</p>
  
  <pre><code>WARNING: Visual Leak Detector detected memory leaks!
  ---------- Block 364 at 0x005D2E38: 20 bytes ----------
    Leak Hash: 0x8FD6682B, Count: 1, Total 20 bytes
    Call Stack (TID 11424):
      0x771CE046 (File and line number not available): ntdll.dll!RtlAllocateHeap
      f:\dd\vctools\crt\crtw32\heap\malloc.c (58): utilities-test.exe!_heap_alloc_base
      f:\dd\vctools\crt\crtw32\misc\dbgheap.c (431): utilities-test.exe!_heap_alloc_dbg_impl + 0x9 bytes
      f:\dd\vctools\crt\crtw32\misc\dbgheap.c (239): utilities-test.exe!_nh_malloc_dbg_impl + 0x19 bytes
      f:\dd\vctools\crt\crtw32\misc\dbgheap.c (302): utilities-test.exe!_nh_malloc_dbg + 0x1D bytes
      f:\dd\vctools\crt\crtw32\misc\dbgmalloc.c (56): utilities-test.exe!malloc + 0x15 bytes
      d:\cfiles\projects\winssl\openssl-1.0.1e\crypto\mem.c (79): utilities-test.exe!default_malloc_ex + 0xB bytes
      c:\development\cots\boost\boost\asio\ssl\detail\impl\openssl_init.ipp (127): utilities-test.exe!boost::asio::ssl::detail
  ::openssl_init_base::instance + 0x3F bytes
      c:\development\cots\boost\boost\asio\ssl\detail\openssl_init.hpp (61): utilities-test.exe!boost::asio::ssl::detail::open
  ssl_init&lt;1&gt;::openssl_init&lt;1&gt; + 0x9 bytes
      d:\server\programs\microsoft visual studio 12.0\vc\include\xmemory0 (611): utilities-test.exe!`dynamic initializer for 'boost::asio::ssl
  ::detail::openssl_init&lt;1&gt;::instance_'' + 0xD bytes
      f:\dd\vctools\crt\crtw32\startup\crt0dat.c (955): utilities-test.exe!_initterm
      f:\dd\vctools\crt\crtw32\startup\crt0dat.c (308): utilities-test.exe!_cinit + 0xF bytes
      f:\dd\vctools\crt\crtw32\startup\crt0.c (237): utilities-test.exe!__tmainCRTStartup + 0x7 bytes
      f:\dd\vctools\crt\crtw32\startup\crt0.c (165): utilities-test.exe!mainCRTStartup
      0x76BA336A (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
      0x771D92B2 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
      0x771D9285 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
    Data:
      00 00 00 00    B8 2E 5D 00    01 00 00 00    04 00 00 00     ......]. ........
      50 E1 60 01                                                  P.`..... ........
  </code></pre>