summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/sort.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 74457fffe..5d6d980b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);