1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2025-01-11 10:30:16 +00:00

Add asserts to freeing the bus.

This commit is contained in:
Radosław Kujawa 2017-01-16 21:34:56 +01:00
parent e7c81c0fbc
commit 26384ce27d

View File

@ -41,6 +41,9 @@ bus_init()
void void
bus_finish(bus_t *t) bus_finish(bus_t *t)
{ {
assert(t != NULL);
assert(t->space != NULL);
free(t->space); free(t->space);
} }