Skip to content

Commit

Permalink
Fixing memory leak in calc_metric(). Fixes RRZE-HPC#265.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Feb 3, 2020
1 parent 031ee03 commit 9862b2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/perfgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,7 @@ calc_metric(char* formula, CounterList* clist, double *result)
// now we can calculate the formula
i = calculate_infix(bdata(f), result);
bdestroy(f);
bdestroy(inf);
bdestroy(nan);
bdestroy(zero);
return i;
Expand Down

0 comments on commit 9862b2e

Please sign in to comment.