diff options
-rw-r--r-- | src/channel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index 255026a..9d74b7f 100644 --- a/src/channel.c +++ b/src/channel.c @@ -57,6 +57,9 @@ channel_buffer_open(int mtu) static void channel_buffer_close(struct channel_buffer *b) { + if (b == NULL) + return; + free(b->data); free(b); } |