commit | c6f0f390c7072c91a9ac0d980e078e842226b9c1 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Fri Sep 26 10:16:53 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:57:16 2015 -0800 |
tree | 46bf4090188aeb38ebcd3d25dd810df094f9d081 | |
parent | d33388286b785748773c54f066319d37c66f8f91 [diff] |
dedupe: fix warning and segfault on -B0 Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/t/dedupe.c b/t/dedupe.c index 3ae1724..37437c2 100644 --- a/t/dedupe.c +++ b/t/dedupe.c
@@ -508,7 +508,7 @@ 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 @@ show_stat(nextents, nchunks); fio_mutex_remove(rb_lock); - bloom_free(bloom); + if (bloom) + bloom_free(bloom); scleanup(); return ret; }