diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-26 00:27:50 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-07-26 23:55:44 +0200 |
commit | 44f43ff8e9e7937067e3841ee204ec2a76d1c283 (patch) | |
tree | 230882aa838ed434d722d778e2306a25ffd157fd | |
parent | 143b843ed1aea72d4a21a659ffee37a751eb9610 (diff) | |
download | ceph-44f43ff8e9e7937067e3841ee204ec2a76d1c283.tar.gz |
test_cls_statelog.cc: fix memory leak, delete 'rop'
CID 1054840 (#3 of 3): 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.cc | 1 |
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 33028f4fbad..a1b4cc34efc 100644 --- a/src/test/cls_statelog/test_cls_statelog.cc +++ b/src/test/cls_statelog/test_cls_statelog.cc @@ -70,6 +70,7 @@ static void get_entries_by_object(librados::IoCtx& ioctx, string& oid, cls_statelog_list(*rop, empty_str, op_id, object, marker, 0, entries, &marker, &truncated); ASSERT_EQ(0, ioctx.operate(oid, rop, &obl)); ASSERT_EQ(expected, (int)entries.size()); + delete rop; } static void get_entries_by_client_id(librados::IoCtx& ioctx, string& oid, |