Skip to content

Commit

Permalink
veristat: sync to latest upstream veristat
Browse files Browse the repository at this point in the history
Sync a simple fix from upstream veristat version.

Signed-off-by: Andrii Nakryiko <[email protected]>
  • Loading branch information
anakryiko committed Jun 4, 2024
1 parent 4fea642 commit 75c31b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/veristat.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,13 @@ static int parse_stats(const char *stats_str, struct stat_specs *specs)

while ((next = strtok_r(state ? NULL : input, ",", &state))) {
err = parse_stat(next, specs);
if (err)
if (err) {
free(input);
return err;
}
}

free(input);
return 0;
}

Expand Down

0 comments on commit 75c31b2

Please sign in to comment.