From 7e829509fe294e8d0207ae1e07182772bf7c3ede Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 18 Sep 2014 13:28:47 +0200 Subject: [PATCH] test/kv_store_bench.cc: fix coverity REVERSE_INULL CID 1021214 (#1 of 1): Dereference before null check (REVERSE_INULL) check_after_deref: Null-checking cb_args suggests that it may be null, but it has already been dereferenced on all paths leading to the check. Signed-off-by: Danny Al-Gaaf --- src/test/kv_store_bench.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/kv_store_bench.cc b/src/test/kv_store_bench.cc index 698105c9f39b4..790e5695fcb01 100644 --- a/src/test/kv_store_bench.cc +++ b/src/test/kv_store_bench.cc @@ -420,9 +420,7 @@ int KvStoreBench::test_teuthology_aio(next_gen_t distr, break; } - if (cb_args) { - delete cb_args; - } + delete cb_args; } while(ops_in_flight > 0) { -- 2.39.5