From fe0debf2de2640d654718aeba1ca3fdf3ac461a2 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Tue, 17 Oct 2023 23:16:10 +0900 Subject: [PATCH] reload: add missing flb_cf_destroy (#8042) 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 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; }