Opened 4 years ago
Last modified 4 years ago
#187 new defect
exception leaks storage — at Initial Version
Reported by: | pabuhr | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description
Exception is not cleaned up for exit from handler. Can RAII be used to solve this?
#include <exception.hfa> TRIVIAL_EXCEPTION(fred); int main( int argc, char * argv[] ) { try { throw (fred){}; } catch( fred * ex ) { exit( -1 ); } // try }
@plg2[101]% a.out CFA warning (UNIX pid:17447) : program terminating with 32(0x20) bytes of storage allocated but not freed. Possible cause is unfreed storage allocated by the program or system/library routines called from the program.
Note: See
TracTickets for help on using
tickets.