From e7759c2b4f5dbf57a8e9fed7e29f63837cebb794 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 19 Nov 2024 12:57:02 +0900 Subject: [PATCH] in_forward: Plug a resource leak on exception (CID 508064) Signed-off-by: Hiroshi Hatake --- plugins/in_forward/fw_prot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/in_forward/fw_prot.c b/plugins/in_forward/fw_prot.c index a118da599ce..a3c0ee05464 100644 --- a/plugins/in_forward/fw_prot.c +++ b/plugins/in_forward/fw_prot.c @@ -629,6 +629,7 @@ static int check_ping(struct flb_input_instance *ins, flb_free(serverside); flb_free(hostname); flb_free(shared_key_salt); + flb_free(shared_key_digest); msgpack_unpacked_destroy(&result); return -1; }