diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/sort.c | 5 |
2 files changed, 5 insertions, 4 deletions
@@ -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. diff --git a/src/sort.c b/src/sort.c index 29a3c1805..824dd0d23 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) |