summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-26 00:44:26 +0200
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-07-26 23:55:53 +0200
commit94cefc7765450173ca20cf5b6a1ed374580dcc5e (patch)
tree05f0b8ad150a5b9eeb3396b07bfce50a2d08366f
parent87f8e8fe9cb6ea88120bbd793d6a378a6e9d1ff8 (diff)
downloadceph-94cefc7765450173ca20cf5b6a1ed374580dcc5e.tar.gz
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 <danny.al-gaaf@bisect.de>
-rw-r--r--src/test/cls_log/test_cls_log.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/cls_log/test_cls_log.cc b/src/test/cls_log/test_cls_log.cc
index 090490d99a9..ce97025f819 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;
}