Boost C++ Libraries: Ticket #9033: Resource Leak in boost::filesystem in operation.cpp at resize_file_api() (Windows) https://svn.boost.org/trac10/ticket/9033 <p> The function resize_file_api() in operations.cpp can lead to a resource leak. The responsible part of code is the following: </p> <pre class="wiki">return handle != INVALID_HANDLE_VALUE &amp;&amp; ::SetFilePointerEx(handle, sz, 0, FILE_BEGIN) &amp;&amp; ::SetEndOfFile(handle) &amp;&amp; ::CloseHandle(handle); </pre><p> If <a class="missing wiki">SetFilePointerEx</a>() or <a class="missing wiki">SetEndOfFile</a>() fail, the handle will not be closed. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9033 Trac 1.4.3 anonymous Fri, 08 Aug 2014 06:47:50 GMT <link>https://svn.boost.org/trac10/ticket/9033#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9033#comment:1</guid> <description> <p> Please check it! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 08 Aug 2014 06:48:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/9033#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9033#comment:2</guid> <description> <p> And fix it! </p> </description> <category>Ticket</category> </item> </channel> </rss>