From 25e957640cbbec255b7b3f665963a463a1960c0b Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 26 Aug 2024 15:33:11 -0600 Subject: [PATCH] in_forward: release resource on exception (CID 508219) Signed-off-by: Eduardo Silva --- plugins/in_forward/fw_conn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/in_forward/fw_conn.c b/plugins/in_forward/fw_conn.c index 45862f1eced..94465256628 100644 --- a/plugins/in_forward/fw_conn.c +++ b/plugins/in_forward/fw_conn.c @@ -147,6 +147,7 @@ struct fw_conn *fw_conn_add(struct flb_connection *connection, struct flb_in_fw_ helo = flb_malloc(sizeof(struct flb_in_fw_helo)); if (!helo) { flb_errno(); + flb_free(conn); return NULL; }