]> mj.ucw.cz Git - libucw.git/commitdiff
Really deallocate the big_buf when radix-splitting.
authorMartin Mares <mj@ucw.cz>
Sat, 10 Feb 2007 21:16:38 +0000 (22:16 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 10 Feb 2007 21:16:38 +0000 (22:16 +0100)
lib/sorter/govern.c

index 1211a81cfe55e912d87c1b9fab4bfb875681f4bd..2a8bea0b27da7330c18f7b4f65d91fadcb96bc53 100644 (file)
@@ -193,6 +193,7 @@ sorter_radix(struct sort_context *ctx, struct sort_bucket *b, uns bits)
   uns nbuck = 1 << bits;
   SORT_XTRACE(2, "Running radix split on %s with hash %d bits of %d (expecting %s buckets)",
              F_BSIZE(b), bits, b->hash_bits, stk_fsize(sbuck_size(b) / nbuck));
+  sorter_free_buf(ctx);
   sorter_start_timer(ctx);
 
   struct sort_bucket **outs = alloca(nbuck * sizeof(struct sort_bucket *));