From 0b8e8309c318b0a9843a6e89ce0ab0edd8a14c3e Mon Sep 17 00:00:00 2001 From: Andrey Borodin Date: Fri, 29 Mar 2019 15:04:19 +0500 Subject: [PATCH] Prevent condition leak --- sources/io.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sources/io.h b/sources/io.h index cd4099b1..d0542266 100644 --- a/sources/io.h +++ b/sources/io.h @@ -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*