aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index b005307..7fc04cf 100644
--- a/src/io.c
+++ b/src/io.c
@@ -46,6 +46,9 @@ void bh_io_free(bh_io_t *io)
/* Call the IO device destruction handler */
io->func(io + 1, BH_IO_DESTROY_CB, NULL, NULL);
+
+ /* Deallocate object */
+ free(io);
}