sort: fix memory leak (thanks Igor Boehm)
Free the last line that we examine when looping through the lines in a file.
This commit is contained in:
parent
fd1db35c4d
commit
c3b30544e1
1 changed files with 2 additions and 0 deletions
|
@ -209,6 +209,8 @@ dofile(Biobuf *b)
|
|||
free(ol);
|
||||
ol = l;
|
||||
}
|
||||
free(ol->key);
|
||||
free(ol);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue