diff --git a/src/flb_reload.c b/src/flb_reload.c index 6c0e7c6ce90..ea43a3554d4 100644 --- a/src/flb_reload.c +++ b/src/flb_reload.c @@ -404,6 +404,7 @@ int flb_reload(flb_ctx_t *ctx, struct flb_cf *cf_opts) if (file != NULL) { flb_sds_destroy(file); } + flb_cf_destroy(new_cf); flb_error("[reload] reconstruct cf failed"); return -1; }