Fix a GIANT memory leak on read :D

Vitaliy Filippov 2020-09-16 23:19:32 +03:00
parent 28a0f08ce7
commit 67a2e5640c
1 changed files with 0 additions and 2 deletions

View File

@ -202,8 +202,6 @@ void osd_messenger_t::handle_op_hdr(osd_client_t *cl)
}
else if (cur_op->req.hdr.opcode == OSD_OP_READ)
{
if (cur_op->req.rw.len > 0)
cur_op->buf = memalign_or_die(MEM_ALIGNMENT, cur_op->req.rw.len);
cl->read_remaining = 0;
}
else if (cur_op->req.hdr.opcode == OSD_OP_WRITE)