0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Fixes crash on BSD.

This commit is contained in:
Ondrej Zajicek 2011-07-28 13:50:02 +02:00
parent 4160a9dd94
commit 14272097df

View File

@ -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;
}