(keycompare): call alloca(0) after each iteration
authorJim Meyering <jim@meyering.net>
Sat, 8 Nov 1997 04:47:17 +0000 (04:47 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 8 Nov 1997 04:47:17 +0000 (04:47 +0000)
src/sort.c

index 70b970a..c2d0844 100644 (file)
@@ -1684,8 +1684,12 @@ keycompare (const struct line *a, const struct line *b)
 
          diff = strcoll (copy_a, copy_b);
 
+         /* Free copy_a and copy_b.  */
+         alloca (0);
+
          if (diff)
            return key->reverse ? -diff : diff;
+
          continue;
        }
 #endif