summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--blaze822.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/blaze822.c b/blaze822.c
index befdd6a..5ea82c6 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -395,6 +395,8 @@ blaze822_mem(char *src, size_t len)
 void
 blaze822_free(struct message *mesg)
 {
+	if (!mesg)
+		return;
 	free(mesg->msg);
 	free(mesg->bodychunk);
 	free(mesg);