<div dir="ltr"><span style="font-size:12.8px">I use libcurl 7.50.3 as statically linked in my application dll , along</span><br style="font-size:12.8px"><span style="font-size:12.8px">with openssl 1.1.0b also statically linked. The dll is dynamically loaded</span><br style="font-size:12.8px"><span style="font-size:12.8px">using LoadLibrary() and unloaded using FreeLibrary() inside application</span><br style="font-size:12.8px"><span style="font-size:12.8px">exe. I observed a TLS index is not getting freed which was allocated inside</span><br style="font-size:12.8px"><span style="font-size:12.8px">openssl. To narrow down the issue I have following exported function, which</span><br style="font-size:12.8px"><span style="font-size:12.8px">I call from my application exe. After FreeLibrary() I see the TLS leak</span><br style="font-size:12.8px"><span style="font-size:12.8px">through APplication verifier.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">extern "C" __declspec(dllexport)</span><br style="font-size:12.8px"><span style="font-size:12.8px">void CurlSetup()</span><br style="font-size:12.8px"><span style="font-size:12.8px">{</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">curl_global_init(CURL_GLOBAL_</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">DEFAULT);</span><br style="font-size:12.8px"><span style="font-size:12.8px"> curl_global_cleanup();</span><br style="font-size:12.8px"><span style="font-size:12.8px">return;</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">}</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">An early reply in this context is appreciated.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Thanks</span><br></div>