From 9b36c122ab218c278651d0565d69339eb9948808 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 26 Sep 2014 10:16:53 -0600 Subject: [PATCH 1/1] dedupe: fix warning and segfault on -B0 Signed-off-by: Jens Axboe --- t/dedupe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/dedupe.c b/t/dedupe.c index 3ae17242..37437c2c 100644 --- a/t/dedupe.c +++ b/t/dedupe.c @@ -508,7 +508,7 @@ static int usage(char *argv[]) int main(int argc, char *argv[]) { - uint64_t nextents, nchunks; + uint64_t nextents = 0, nchunks = 0; int c, ret; debug_init(); @@ -564,7 +564,8 @@ int main(int argc, char *argv[]) show_stat(nextents, nchunks); fio_mutex_remove(rb_lock); - bloom_free(bloom); + if (bloom) + bloom_free(bloom); scleanup(); return ret; } -- 2.25.1