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:
David Zafman 2014-03-05 15:08:41 -08:00
parent b642e3884c
commit 3f59f02913

View File

@ -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);