From 26384ce27df870c1cc564437e6ea9e32e27367eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Mon, 16 Jan 2017 21:34:56 +0100 Subject: [PATCH] Add asserts to freeing the bus. --- src/bus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bus.c b/src/bus.c index 39bae53..187b9e3 100644 --- a/src/bus.c +++ b/src/bus.c @@ -41,6 +41,9 @@ bus_init() void bus_finish(bus_t *t) { + assert(t != NULL); + assert(t->space != NULL); + free(t->space); }