diff --git a/src/aws/flb_aws_util.c b/src/aws/flb_aws_util.c index 6ddd75b82d9..22862ba3cb1 100644 --- a/src/aws/flb_aws_util.c +++ b/src/aws/flb_aws_util.c @@ -1029,6 +1029,8 @@ size_t flb_aws_strftime_precision(char **out_buf, const char *time_format, tmp = gmtime_r(&tms->tm.tv_sec, ×tamp); if (!tmp) { + flb_free(tmp_parsed_time_str); + flb_free(buf); return 0; }