Commit 14272097 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes crash on BSD.

parent 4160a9dd
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment