mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
A minor fix in BSD.
This commit is contained in:
parent
8815d846bf
commit
a209d5d8e1
@ -697,8 +697,10 @@ krt_set_construct(struct krt_config *c UNUSED)
|
||||
void
|
||||
krt_set_shutdown(struct krt_proto *x UNUSED, int last UNUSED)
|
||||
{
|
||||
if (krt_buffer)
|
||||
mb_free(krt_buffer);
|
||||
if (!krt_buffer)
|
||||
return;
|
||||
|
||||
mb_free(krt_buffer);
|
||||
krt_buffer = NULL;
|
||||
}
|
||||
|
||||
@ -720,6 +722,9 @@ krt_if_start(struct kif_proto *p UNUSED)
|
||||
void
|
||||
krt_if_shutdown(struct kif_proto *p UNUSED)
|
||||
{
|
||||
if (!kif_buffer)
|
||||
return;
|
||||
|
||||
mb_free(kif_buffer);
|
||||
kif_buffer = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user