Skip to content

Commit

Permalink
Release memory on eof().
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Nov 22, 2016
1 parent 72e3b57 commit 56b91d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stores/tgTig.C
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,10 @@ tgTig::loadLayout(FILE *F) {

fgets(LINE, LINEmax, F); LINEnum++;

if (feof(F))
if (feof(F)) {
delete [] LINE;
return(false);
}

while (!feof(F)) {
splitToWords W(LINE);
Expand Down

0 comments on commit 56b91d6

Please sign in to comment.