Changeset f49b3fc


Ignore:
Timestamp:
Aug 1, 2019, 4:27:46 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
ba417e2
Parents:
2890212
Message:

Fixed memory bug in unify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Unify.cc

    r2890212 rf49b3fc  
    167167                newFirst ->qualifiers = {};
    168168                newSecond->qualifiers = {};
    169                 #warning memory leak
     169                ast::ptr< ast::Type > t1_(newFirst );
     170                ast::ptr< ast::Type > t2_(newSecond);
    170171
    171172                return unifyExact(
     
    11951196                t1->qualifiers = {};
    11961197                t2->qualifiers = {};
    1197                 #warning memory leak
     1198                ast::ptr< ast::Type > t1_(t1);
     1199                ast::ptr< ast::Type > t2_(t2);
    11981200
    11991201                if ( unifyExact( t1, t2, env, need, have, open, widen, symtab ) ) {
Note: See TracChangeset for help on using the changeset viewer.