Fix possible leak in blockstore_read

blocking-uring-test
Vitaliy Filippov 2020-02-21 19:38:43 +03:00
parent ffe073473a
commit 0e177c7a2a
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ int blockstore_impl_t::dequeue_read(blockstore_op_t *read_op)
memset(read_op->buf, 0, read_op->len);
read_op->version = 0;
read_op->retval = read_op->len;
read_op->callback(read_op);
FINISH_OP(read_op);
return 1;
}
uint64_t fulfilled = 0;
@ -210,7 +210,7 @@ int blockstore_impl_t::dequeue_read(blockstore_op_t *read_op)
memset(read_op->buf, 0, read_op->len);
}
read_op->retval = read_op->len;
read_op->callback(read_op);
FINISH_OP(read_op);
return 1;
}
read_op->retval = 0;