diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/sort.c | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2007-10-07 Jim Meyering <meyering@redhat.com> + Avoid a pseudo-leak in sort. + * src/sort.c (main) [lint]: Avoid a nominal leak. + Use puts, rather than printf ("%s\n". Slightly cleaner. * src/tsort.c (tsort): ...and more efficient. diff --git a/src/sort.c b/src/sort.c index 620a4bc7c..1183fc5cc 100644 --- a/src/sort.c +++ b/src/sort.c @@ -3165,6 +3165,7 @@ main (int argc, char **argv) sortfiles[i].name = files[i]; merge (sortfiles, 0, nfiles, outfile); + IF_LINT (free (sortfiles)); } else sort (files, nfiles, outfile); |