From b2199a968783d425bd2f6c9fae3fa22faddb0a5e Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 18 Dec 2014 08:47:56 +0100 Subject: Free event list names on clear_events() clear_events() just reset the start point of our event list, but didn't actually free the event names that got "cleared". Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- profile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'profile.c') 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; } -- cgit v1.2.3-70-g09d2