Boost C++ Libraries: Ticket #7084: memory leak in fileiter.cpp https://svn.boost.org/trac10/ticket/7084 <p> In file libs/regex/src/fileiter.cpp </p> <p> In case the opendir is successful but if condition fails in following code block then there will be memory leak. </p> <pre class="wiki">DIR* h = opendir(dat-&gt;root); dat-&gt;d = h; if(h != 0) { if(_fi_FindNextFile(dat, lpFindFileData)) return dat; } delete dat; return 0; </pre><p> The attached patch is the fix for this situation. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7084 Trac 1.4.3 Gaurav Gupta <g.gupta@…> Thu, 05 Jul 2012 12:07:38 GMT attachment set https://svn.boost.org/trac10/ticket/7084 https://svn.boost.org/trac10/ticket/7084 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">fileiter.cpp_patch</span> </li> </ul> <p> Fix for the reported Bug. </p> Ticket John Maddock Sat, 07 Jul 2012 17:07:19 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7084#comment:1 https://svn.boost.org/trac10/ticket/7084#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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79338" title="Fix potential memory leak. Fixes #7084.">[79338]</a>) Fix potential memory leak. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7084" title="#7084: Bugs: memory leak in fileiter.cpp (closed: fixed)">#7084</a>. </p> Ticket John Maddock Mon, 16 Jul 2012 08:38:29 GMT <link>https://svn.boost.org/trac10/ticket/7084#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7084#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/79556" title="Merge collected bug fixes from Trunk: Refs #589. Refs #7032. Refs ...">[79556]</a>) Merge collected bug fixes from Trunk: Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/589" title="#589: Bugs: regex_replace bug (closed: fixed)">#589</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7032" title="#7032: Bugs: Prevent tool Bug Fix. (closed: fixed)">#7032</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7084" title="#7084: Bugs: memory leak in fileiter.cpp (closed: fixed)">#7084</a>. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6346" title="#6346: Bugs: boost::regex::begin() and boost::regex::end() always return 0 (closed: fixed)">#6346</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>