Boost C++ Libraries: Ticket #9059: Boost.Asio detail/impl/win_static_mutex leaks a CRITICAL_SECTION https://svn.boost.org/trac10/ticket/9059 <p> A CRITICAL_SECTION is not some POD type. It needs to be freed using <a class="missing wiki">DeleteCriticalSection</a> or it will leak resources. </p> <p> This leak has been found using Microsoft's Application Verifier. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9059 Trac 1.4.3 chris_kohlhoff Mon, 05 May 2014 08:34:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9059#comment:1 https://svn.boost.org/trac10/ticket/9059#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> This is deliberate. A static_mutex is intended to remain valid until program exit, when it will be cleaned up automatically by the operating system. </p> Ticket Oleg Fri, 29 Jul 2016 22:15:15 GMT <link>https://svn.boost.org/trac10/ticket/9059#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9059#comment:2</guid> <description> <p> and what to do if boost is used statically in DLL? After DLL will be unloaded - CRITICAL_SECTION will leak... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Oleg</dc:creator> <pubDate>Sat, 30 Jul 2016 10:16:56 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/9059#comment:3 https://svn.boost.org/trac10/ticket/9059#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">invalid</span> </li> </ul> Ticket