From: Ondrej Zajicek Date: Thu, 28 Jul 2011 11:50:02 +0000 (+0200) Subject: Fixes crash on BSD. X-Git-Tag: v1.3.3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14272097df989808790673521f643053f898aa8c;p=thirdparty%2Fbird.git Fixes crash on BSD. --- diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 81f0013cd..9e3dcfeae 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; }