2007-07-20  Andreas Schwab  <[EMAIL PROTECTED]>

        * src/sort.c (main): Don't free non-heap object.

diff --git a/src/sort.c b/src/sort.c
index 29a3c18..824dd0d 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -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)

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to