summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--profile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index 521e6f68f..6c4754574 100644
--- a/profile.c
+++ b/profile.c
@@ -120,6 +120,8 @@ int evn_foreach (void (*callback)(const char *, bool *, void *), void *data) {
void clear_events(void)
{
+ for (int i = 0; i < evn_used; i++)
+ free(ev_namelist[i].ev_name);
evn_used = 0;
}