Changeset 837a17c


Ignore:
Timestamp:
Aug 22, 2016, 4:22:21 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
dadc1b5
Parents:
2acf5fc
Message:

elminated multiple memory leaks of expressions

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/StatementNode.cc

    r2acf5fc r837a17c  
    4444                        agg = decl;
    4545                } // if
    46                 stmt.reset( new DeclStmt( noLabels, maybeBuild< Declaration >(agg) ) );
     46                stmt.reset( new DeclStmt( noLabels, maybeMoveBuild< Declaration >(agg) ) );
    4747        } else {
    4848                assert( false );
  • src/SynTree/Expression.cc

    r2acf5fc r837a17c  
    385385UntypedExpr::~UntypedExpr() {
    386386        delete function;
    387         // deleteAll( args );  //TODO FIXME the arguments are leaked but they seem to be shared in some way
     387        deleteAll( args );  //TODO FIXME the arguments are leaked but they seem to be shared in some way
    388388}
    389389
  • src/SynTree/Initializer.cc

    r2acf5fc r837a17c  
    4343
    4444SingleInit::~SingleInit() {
     45        delete value;
    4546        deleteAll(designators);
    4647}
Note: See TracChangeset for help on using the changeset viewer.