From 14272097df989808790673521f643053f898aa8c Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 28 Jul 2011 13:50:02 +0200 Subject: Fixes crash on BSD. --- sysdep/bsd/krt-sock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdep') diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 81f0013..9e3dcfe 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -697,7 +697,8 @@ krt_set_construct(struct krt_config *c UNUSED) void krt_set_shutdown(struct krt_proto *x UNUSED, int last UNUSED) { - mb_free(krt_buffer); + if (krt_buffer) + mb_free(krt_buffer); krt_buffer = NULL; } -- cgit v1.2.3