summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-22 12:38:21 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-22 12:58:28 +0200
commitfc1c1c6fdc63ae42d11704b980d7e11c8f28ae9a (patch)
tree3c221b0965123b5b0e35130540f0ba4ddea140b6
parent8e8596d20179bd3ae0d93cbf84264fb15500db97 (diff)
downloadceph-fc1c1c6fdc63ae42d11704b980d7e11c8f28ae9a.tar.gz
test_cls_statelog.cc: fix resource leak, delete rop at end of function
CID 1049215 (#12 of 12): Resource leak (RESOURCE_LEAK) leaked_storage: Variable "rop" going out of scope leaks the storage it points to. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/test/cls_statelog/test_cls_statelog.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/cls_statelog/test_cls_statelog.cc b/src/test/cls_statelog/test_cls_statelog.cc
index 294b528f5db..04861669915 100644
--- a/src/test/cls_statelog/test_cls_statelog.cc
+++ b/src/test/cls_statelog/test_cls_statelog.cc
@@ -203,5 +203,6 @@ TEST(cls_rgw, test_statelog_basic)
string empty_str;
get_entries_by_client_id(ioctx, oid, entries, e.client_id, empty_str, 4);
get_entries_by_object(ioctx, oid, entries, e.object, empty_str, 1);
+ delete rop;
}