]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/librados/c_read_operations.cc: Fix trivial memory leak
authorBrad Hubbard <bhubbard@redhat.com>
Sat, 24 Dec 2016 23:37:57 +0000 (09:37 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Sat, 24 Dec 2016 23:37:57 +0000 (09:37 +1000)
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/test/librados/c_read_operations.cc

index 7fab5cf4e9923e5868bd455b72614eb0eab1f10a..091cad68884cf0831d1534bc0a7cf95b3d1e6b16 100644 (file)
@@ -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);