From: Danny Al-Gaaf Date: Mon, 22 Jul 2013 09:23:57 +0000 (+0200) Subject: test_cls_version.cc: fix ressource leak X-Git-Tag: v0.67-rc3~60^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c35eeae3c23f250ab7dc3426682f9cca5b2df986;p=ceph.git test_cls_version.cc: fix ressource leak CID 1049220 (#18 of 18): 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_version/test_cls_version.cc b/src/test/cls_version/test_cls_version.cc index caa0a36cd74a..49c64b0b829c 100644 --- a/src/test/cls_version/test_cls_version.cc +++ b/src/test/cls_version/test_cls_version.cc @@ -295,4 +295,6 @@ TEST(cls_rgw, test_version_inc_check) rop = new_rop(); cls_version_check(*rop, cond_ver, VER_COND_TAG_NE); ASSERT_EQ(-ECANCELED, ioctx.operate(oid, rop, &bl)); + + delete rop; }