diff --git a/src/flb_config.c b/src/flb_config.c index 459ff8197dd..a0feb73b3f2 100644 --- a/src/flb_config.c +++ b/src/flb_config.c @@ -393,8 +393,7 @@ void flb_config_exit(struct flb_config *config) } if (config->kernel) { - flb_free(config->kernel->s_version.data); - flb_free(config->kernel); + flb_kernel_destroy(config->kernel); } /* release resources */