From: Martin Mares Date: Sat, 10 Feb 2007 21:16:38 +0000 (+0100) Subject: Really deallocate the big_buf when radix-splitting. X-Git-Tag: holmes-import~506^2~13^2~143 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7bddf3297ee2592efb3ca02b822683371e64e340;p=libucw.git Really deallocate the big_buf when radix-splitting. --- diff --git a/lib/sorter/govern.c b/lib/sorter/govern.c index 1211a81c..2a8bea0b 100644 --- a/lib/sorter/govern.c +++ b/lib/sorter/govern.c @@ -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 *));