Skip to content

Commit 35bcf13

Browse files
committed
fix(aws): Minor leak on empty_payload_hex when canonical request build fails
Signed-off-by: Arbin <[email protected]>
1 parent 9aa3ebc commit 35bcf13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/aws/flb_aws_msk_iam.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,9 @@ static flb_sds_t build_msk_iam_payload(struct flb_aws_msk_iam *config,
570570
if (session_token_enc) {
571571
flb_sds_destroy(session_token_enc);
572572
}
573+
if (empty_payload_hex) {
574+
flb_sds_destroy(empty_payload_hex);
575+
}
573576

574577
return NULL;
575578
}

0 commit comments

Comments
 (0)