Opened 16 years ago

Closed 16 years ago

#628 closed Bugs (Invalid)

memory leak with boost::gregorian::date_facet

Reported by: mandryka000 Owned by: az_sw_dude
Milestone: Component: date_time
Version: None Severity:
Keywords: Cc:

Description

the following snippet causes a segmentation fault: 
 
 
 
 
using namespace boost::gregorian; 
date_facet * facet = new date_facet("%D"); //OK 
delete facet; //sergmentation error, here! 
 
 

Change History (3)

comment:1 by mandryka000, 16 years ago

Summary: memry leak with boost::gregorian::date_facetmemory leak with boost::gregorian::date_facet

comment:2 by az_sw_dude, 16 years ago

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.

comment:3 by az_sw_dude, 16 years ago

Status: assignedclosed
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
Note: See TracTickets for help on using tickets.