Changeset 1158


Ignore:
Timestamp:
Aug 12, 2003, 11:42:30 AM (17 years ago)
Author:
pooh
Message:
  • Missing free()'s inserted.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/library/StdIO/read.cc

    r1157 r1158  
    8888  }
    8989  buf[i] = 0;
    90   return Integer::create_expr(buf);
     90  Expr e = Integer::create_expr(buf);
     91  free(buf);
     92  return e;
    9193}
    9294
     
    127129  } else throw wc;
    128130  buf[i] = 0;
    129   return Word::create_expr(buf);
     131  Expr e = Word::create_expr(buf);
     132  free(buf);
     133  return e;
    130134}
    131135
Note: See TracChangeset for help on using the changeset viewer.