Fix memory leaks in fio engines

This commit is contained in:
Vitaliy Filippov
2021-02-01 19:31:10 +03:00
parent 9ef7f865b0
commit 21e06ea40d
2 changed files with 4 additions and 4 deletions
+2
View File
@@ -140,6 +140,7 @@ static void sec_cleanup(struct thread_data *td)
if (bsd)
{
close(bsd->connect_fd);
delete bsd;
}
}
@@ -312,6 +313,7 @@ static int sec_getevents(struct thread_data *td, unsigned int min, unsigned int
exit(1);
}
io_u* io = it->second;
bsd->queue.erase(it);
if (io->ddir == DDIR_READ)
{
if (reply.hdr.retval != io->xfer_buflen)