From 145b73d5dca2699f23d7364f00471b48b8710893 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Tue, 10 Sep 2024 14:25:42 +0200 Subject: [PATCH] Fix memory leak when creating GENERIC_EVENT --- src/perfmon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/perfmon.c b/src/perfmon.c index 29ca2465..0c04b540 100644 --- a/src/perfmon.c +++ b/src/perfmon.c @@ -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;