summaryrefslogtreecommitdiffstats
path: root/src/test/librgw_file_gp.cc
diff options
context:
space:
mode:
authorMatt Benjamin <mbenjamin@redhat.com>2015-10-30 22:41:39 +0100
committerMatt Benjamin <mbenjamin@redhat.com>2016-02-12 18:05:32 +0100
commit73b19a9129c62237289ad0aecae00c13bc2417df (patch)
tree46b098773b0da19f704c7f51d314fb8a1c3718e1 /src/test/librgw_file_gp.cc
parentlibrgw: checksum verify writev/readv read-after-write (diff)
downloadceph-73b19a9129c62237289ad0aecae00c13bc2417df.tar.xz
ceph-73b19a9129c62237289ad0aecae00c13bc2417df.zip
librgw_file_gp: don't leak a buffer::list
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Diffstat (limited to 'src/test/librgw_file_gp.cc')
-rw-r--r--src/test/librgw_file_gp.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/librgw_file_gp.cc b/src/test/librgw_file_gp.cc
index 1078cca75be..70468fb39ba 100644
--- a/src/test/librgw_file_gp.cc
+++ b/src/test/librgw_file_gp.cc
@@ -319,8 +319,7 @@ TEST(LibRGW, READV)
uio->uio_resid = UINT64_MAX;
int ret = rgw_readv(fs, object_fh, uio);
ASSERT_EQ(ret, 0);
- //buffer::list bl;
- buffer::list& bl = *(new buffer::list());
+ buffer::list bl;
for (unsigned int ix = 0; ix < uio->uio_cnt; ++ix) {
rgw_vio *vio = &(uio->uio_vio[ix]);
bl.push_back(