Boost C++ Libraries: Ticket #628: memory leak with boost::gregorian::date_facet https://svn.boost.org/trac10/ticket/628 <pre class="wiki">the following snippet causes a segmentation fault: using namespace boost::gregorian; date_facet * facet = new date_facet("%D"); //OK delete facet; //sergmentation error, here! </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/628 Trac 1.4.3 mandryka000 Thu, 11 May 2006 06:31:11 GMT summary changed https://svn.boost.org/trac10/ticket/628#comment:1 https://svn.boost.org/trac10/ticket/628#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">memry leak with boost::gregorian::date_facet</span> → <span class="trac-field-new">memory leak with boost::gregorian::date_facet</span> </li> </ul> Ticket az_sw_dude Mon, 29 May 2006 22:26:06 GMT <link>https://svn.boost.org/trac10/ticket/628#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/628#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=579686 I'm not sure which code you are reacting too, but if you imbue the facet into a stream it will be automatically released -- this would perhaps be why you are getting the segmentation fault. Please post a full example. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>az_sw_dude</dc:creator> <pubDate>Tue, 07 Nov 2006 23:45:18 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/628#comment:3 https://svn.boost.org/trac10/ticket/628#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=579686 Just retested this snippet again and it's now problem on g++-4.0. Since there has been no followup from the poster I'm going to close this request for now. Jeff </pre> Ticket