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:
Ori Bernstein 2021-01-01 11:48:39 -08:00
parent fd1db35c4d
commit c3b30544e1

View file

@ -209,6 +209,8 @@ dofile(Biobuf *b)
free(ol);
ol = l;
}
free(ol->key);
free(ol);
return;
}