Skip to content

Commit

Permalink
Fix memory leak when creating GENERIC_EVENT
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Sep 10, 2024
1 parent 537bffe commit 145b73d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,7 @@ perfmon_init_maps(void)
eventHash[perfmon_numArchEvents].limit[ret] = '\0';
}
bdestroy(blim);
bstrListDestroy(outlist);
eventHash[perfmon_numArchEvents].optionMask = EVENT_OPTION_GENERIC_CONFIG_MASK|EVENT_OPTION_GENERIC_UMASK_MASK;
eventHash[perfmon_numArchEvents].numberOfOptions = 2;
eventHash[perfmon_numArchEvents].options[0].type = EVENT_OPTION_GENERIC_CONFIG;
Expand Down

0 comments on commit 145b73d

Please sign in to comment.