X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=t%2Fdedupe.c;h=37437c2c4e970825ae61c7f0378503a6f7040879;hp=3ae17242f4a741bf2ccefd818f4fc8aeea3e6bc4;hb=9b36c122ab218c278651d0565d69339eb9948808;hpb=48b944c48c196ebb5231c2e31d729822629ca1b7 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; }