]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* src/sort.c (main): Don't free a pointer to non-malloc'd memory.
authorAndreas Schwab <schwab@suse.de>
Fri, 20 Jul 2007 14:29:06 +0000 (16:29 +0200)
committerJim Meyering <jim@meyering.net>
Fri, 20 Jul 2007 14:29:06 +0000 (16:29 +0200)
ChangeLog
src/sort.c

index d6e2e05ba0708bb8df53d8efd1474cba90806b09..ee816767283bbab36060b1f2beb31214607cdf47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-20  Andreas Schwab  <schwab@suse.de>
+
+       * src/sort.c (main): Don't free a pointer to non-malloc'd memory.
+
 2007-07-19  Jim Meyering  <jim@meyering.net>
 
        Fix a portability bug in the new ls-color test.
index 29a3c180550f821c367dd59c4bcf158f27804914..824dd0d231f8f7a820193cfe58eb9c6b2bd581ee 100644 (file)
@@ -2874,10 +2874,7 @@ main (int argc, char **argv)
                  if (! (key->sword | key->schar))
                    key->sword = SIZE_MAX;
                  if (! s || *set_ordering (s, key, bl_start))
-                   {
-                     free (key);
-                     key = NULL;
-                   }
+                   key = NULL;
                  else
                    {
                      if (minus_pos_usage)