From: Danny Al-Gaaf Date: Thu, 25 Jul 2013 22:44:26 +0000 (+0200) Subject: test_cls_log.cc: fix resource leak, delete 'rop' X-Git-Tag: v0.67-rc3~41^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=94cefc7765450173ca20cf5b6a1ed374580dcc5e;p=ceph.git test_cls_log.cc: fix resource leak, delete 'rop' Fixes for: CID 1054838 (#14 of 14): Resource leak (RESOURCE_LEAK) leaked_storage: Variable "rop" going out of scope leaks the storage it points to. CID 1054836 (#5 of 5): Resource leak (RESOURCE_LEAK) leaked_storage: Variable "rop" going out of scope leaks the storage it points to. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/cls_log/test_cls_log.cc b/src/test/cls_log/test_cls_log.cc index 090490d99a99..ce97025f819c 100644 --- a/src/test/cls_log/test_cls_log.cc +++ b/src/test/cls_log/test_cls_log.cc @@ -279,7 +279,7 @@ TEST(cls_rgw, test_log_add_different_time) } while (truncated); ASSERT_EQ(10, i); - + delete rop; } TEST(cls_rgw, test_log_trim) @@ -330,4 +330,5 @@ TEST(cls_rgw, test_log_trim) ASSERT_EQ(9 - i, (int)entries.size()); ASSERT_EQ(0, (int)truncated); } + delete rop; }