From: Brad Hubbard Date: Sat, 24 Dec 2016 23:37:57 +0000 (+1000) Subject: test/librados/c_read_operations.cc: Fix trivial memory leak X-Git-Tag: v12.0.0~305^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1433917647348fe2e104c2cacc25b1a82f27c58e;p=ceph.git test/librados/c_read_operations.cc: Fix trivial memory leak Signed-off-by: Brad Hubbard --- diff --git a/src/test/librados/c_read_operations.cc b/src/test/librados/c_read_operations.cc index 7fab5cf4e99..091cad68884 100644 --- a/src/test/librados/c_read_operations.cc +++ b/src/test/librados/c_read_operations.cc @@ -428,6 +428,7 @@ TEST_F(CReadOpsTest, ExecUserBuf) { rados_read_op_exec_user_buf(op, "rbd", "get_all_features", NULL, 0, out, sizeof(features) - 1, &bytes_read, &rval); ASSERT_EQ(0, rados_read_op_operate(op, ioctx, obj, 0)); + rados_release_read_op(op); EXPECT_EQ(0u, bytes_read); EXPECT_EQ(-ERANGE, rval);