Skip to content

Commit

Permalink
in_forward: fix resource leak on exception (CID 508219) (#9209)
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored Aug 14, 2024
1 parent 88a5f1e commit 84957e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/in_forward/fw_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ struct fw_conn *fw_conn_add(struct flb_connection *connection, struct flb_in_fw_
ret = fw_prot_secure_forward_handshake_start(ctx->ins, connection, helo);
if (ret != 0) {
flb_free(helo);
flb_free(conn);

return NULL;
}

Expand Down

0 comments on commit 84957e7

Please sign in to comment.