Boost C++ Libraries: Ticket #5839: thread.cpp: ThreadProxy leaks on exceptions https://svn.boost.org/trac10/ticket/5839 <p> If something goes wrong in <a class="missing wiki">ThreadProxy</a> (such as fetching the return value), the <a class="missing wiki">ThreadProxyData</a> could be leaked. </p> <pre class="wiki">DWORD WINAPI ThreadProxy(LPVOID args) { ThreadProxyData* data=reinterpret_cast&lt;ThreadProxyData*&gt;(args); DWORD ret=data-&gt;start_address_(data-&gt;arglist_); delete data; return ret; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5839 Trac 1.4.3 Jeffrey Walton <noloader@…> Wed, 31 Aug 2011 00:44:32 GMT component changed; owner set https://svn.boost.org/trac10/ticket/5839#comment:1 https://svn.boost.org/trac10/ticket/5839#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Anthony Williams</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">thread</span> </li> </ul> Ticket viboes Fri, 02 Dec 2011 23:03:45 GMT owner, status changed; cc set https://svn.boost.org/trac10/ticket/5839#comment:2 https://svn.boost.org/trac10/ticket/5839#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Where exactly is the memory leak? </p> Ticket viboes Wed, 07 Dec 2011 00:31:48 GMT <link>https://svn.boost.org/trac10/ticket/5839#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5839#comment:3</guid> <description> <p> Oh, I see now. The use function can throw :( </p> <p> I will try to take care of this soon. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 10 Dec 2011 11:05:25 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/5839#comment:4 https://svn.boost.org/trac10/ticket/5839#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.49.0</span> </li> </ul> <p> Committed in trunk at <a class="missing ticket">#75860</a> </p> Ticket viboes Sat, 07 Jan 2012 22:47:23 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5839#comment:5 https://svn.boost.org/trac10/ticket/5839#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Committed in release at <a class="missing ticket">#76345</a> </p> Ticket