Skip to content

Commit

Permalink
Fixing Valgrind leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmartin82 committed Feb 12, 2025
1 parent aed8c9f commit 391936e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/time_range.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ static bool _z_time_range_parse_duration(const _z_str_se_t *bound, double *durat
buf[len] = '\0';
char *err;
double value = strtod(bound->start, &err);
z_free(buf);
if (value == 0 && *err != '\0') //_z_cptr_char_offset(buf, len))
{
return false;
}
z_free(buf);
value *= multiplier;

// Check for overflow
Expand Down

0 comments on commit 391936e

Please sign in to comment.