some memory leak 'fixes'

This commit is contained in:
nemu
2009-04-20 14:12:26 +00:00
parent 61f6fd1b9c
commit 99dedce540
8 changed files with 57 additions and 17 deletions

View File

@@ -351,7 +351,7 @@ int main(int argc, char *argv[])
// read input file and write output file
char str[256];
int tag;
int tag = -1;
bool success = true;
while (!fin.eof() && success) {
fin.getline(str, sizeof(str));