Prevent condition leak

This commit is contained in:
Andrey Borodin 2019-03-29 15:04:19 +05:00
parent 3513ed59b4
commit 0b8e8309c3
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ static inline void
od_io_free(od_io_t *io)
{
od_readahead_free(&io->readahead);
if (io->on_read)
machine_cond_free(io->on_read);
if (io->on_write)
machine_cond_free(io->on_write);
}
static inline char*