mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
Revert "c_read_operations.cc: fix resource leak"
This reverts commit 3cd751b0a2
.
A rados_release_read_op() has already been performed, but coverity
didn't recognize that as releasing memory.
Fixes: #7621
Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
b642e3884c
commit
3f59f02913
@ -365,7 +365,6 @@ TEST_F(CReadOpsTest, ExecUserBuf) {
|
||||
|
||||
// buffer too short
|
||||
bytes_read = 1024;
|
||||
rados_release_read_op(op);
|
||||
op = rados_create_read_op();
|
||||
rados_read_op_exec_user_buf(op, "rbd", "get_all_features", NULL, 0, out,
|
||||
sizeof(features) - 1, &bytes_read, &rval);
|
||||
|
Loading…
Reference in New Issue
Block a user