summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channel.c3
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);
}