From: Erwan Velu Date: Tue, 3 Oct 2017 09:33:55 +0000 (+0200) Subject: t/gen-rand: Avoid memleak of buckets() X-Git-Tag: fio-3.2~67 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5e7bb921b275204c5c595332f40ebd5eb465ba86;p=fio.git t/gen-rand: Avoid memleak of buckets() When exiting, buckets structure should be freed to avoid the memleak. Signed-off-by: Jens Axboe --- diff --git a/t/gen-rand.c b/t/gen-rand.c index 6c31f925..4e9d39c6 100644 --- a/t/gen-rand.c +++ b/t/gen-rand.c @@ -63,6 +63,6 @@ int main(int argc, char *argv[]) } printf("Passes=%lu, Fail=%lu\n", pass, fail); - + free(buckets); return 0; }