Skip to content

Commit

Permalink
qa/src/derived.c: plug small memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcdonell committed Jun 5, 2024
1 parent 6089899 commit 131cc62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qa/src/derived.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ main(int argc, char **argv)

if (pmRegisterDerivedMetric(name, expr, &errmsg) < 0) {
fprintf(stderr, "%s: %s", pmGetProgname(), errmsg);
free(errmsg);
}
else {
printf("%s: registered \"%s\" as: \"%s\"\n", pmGetProgname(), name, expr);
Expand Down

0 comments on commit 131cc62

Please sign in to comment.