diff --git a/plugins/in_calyptia_fleet/in_calyptia_fleet.c b/plugins/in_calyptia_fleet/in_calyptia_fleet.c index 89d396721f7..cbacc38de76 100644 --- a/plugins/in_calyptia_fleet/in_calyptia_fleet.c +++ b/plugins/in_calyptia_fleet/in_calyptia_fleet.c @@ -486,6 +486,9 @@ static void *do_reload(void *data) /* avoid reloading the current configuration... just use our new one! */ flb_context_set(reload->flb); reload->flb->config->enable_hot_reload = FLB_TRUE; + if (reload->flb->config->conf_path_file) { + flb_sds_destroy(reload->flb->config->conf_path_file); + } reload->flb->config->conf_path_file = reload->cfg_path; flb_free(reload);