Ignore:
Timestamp:
Aug 30, 2016, 11:46:37 AM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
8b6b552
Parents:
ad4581b
Message:

fixed memory leaks in init expander

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    rad4581b r9b4c936  
    7979        public:
    8080                ExprImpl( Expression * expr ) : arg( expr ) {}
     81
     82                ~ExprImpl() { delete arg; }
    8183
    8284                virtual std::list< Expression * > next( std::list< Expression * > & indices ) {
     
    122124
    123125        void InitExpander::clearArrayIndices() {
     126                deleteAll( indices );
    124127                indices.clear();
    125128        }
Note: See TracChangeset for help on using the changeset viewer.