Skip to content

Commit

Permalink
in_forward: release resource on exception (CID 508219)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Aug 26, 2024
1 parent 763a9c0 commit 25e9576
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_forward/fw_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 25e9576

Please sign in to comment.