mirror of
https://github.com/ceph/ceph
synced 2025-04-01 00:26:47 +00:00
librgw_file_gp: don't leak a buffer::list
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
parent
ab377b1865
commit
73b19a9129
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user