Skip to content

Commit

Permalink
aws_util: release resource on exception (CID 507694 507588)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Aug 27, 2024
1 parent 39abbdf commit 3178e6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aws/flb_aws_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,8 @@ size_t flb_aws_strftime_precision(char **out_buf, const char *time_format,

tmp = gmtime_r(&tms->tm.tv_sec, &timestamp);
if (!tmp) {
flb_free(tmp_parsed_time_str);
flb_free(buf);
return 0;
}

Expand Down

0 comments on commit 3178e6e

Please sign in to comment.