From 4ac5b7b4214b79c1f550c3e634e2dcf46d26f212 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 20 Aug 2024 16:33:33 +0900 Subject: [PATCH] in_emitter: Plug a possible resource leak on exception (CID 508193) Signed-off-by: Hiroshi Hatake --- plugins/in_emitter/emitter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/in_emitter/emitter.c b/plugins/in_emitter/emitter.c index 6d37219befa..064415e807a 100644 --- a/plugins/in_emitter/emitter.c +++ b/plugins/in_emitter/emitter.c @@ -312,6 +312,7 @@ static int cb_emitter_init(struct flb_input_instance *in, ret = flb_input_config_map_set(in, (void *) ctx); if (ret == -1) { + flb_free(ctx); return -1; }