From 4c8a26c97c08b97d3347ebc1254e5c2cac078d0a Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sat, 21 Oct 2023 06:36:16 +0900 Subject: [PATCH] reload: add missing flb_cf_destroy Signed-off-by: Takahiro Yamashita --- src/flb_reload.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flb_reload.c b/src/flb_reload.c index 641fa4a66d0..c9248408663 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; }