Commit 72b81792 authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

A minor fix in BSD.

parent a3772b52
......@@ -698,8 +698,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;
}
......@@ -721,6 +723,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;
}
......
Supports Markdown
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