From c4a946ff96d8f0016e03ca4b675e504a431dd927 Mon Sep 17 00:00:00 2001 From: FelixKratz Date: Thu, 2 Sep 2021 23:52:14 +0200 Subject: [PATCH] free context correctly --- src/bar_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar_manager.c b/src/bar_manager.c index 657a16c..6f01d13 100644 --- a/src/bar_manager.c +++ b/src/bar_manager.c @@ -195,7 +195,7 @@ void bar_manager_handle_system_woke(struct bar_manager* bar_manager) { void bar_manager_handle_notification(struct bar_manager* bar_manager, char* context) { char* name = custom_events_get_name_for_notification(&bar_manager->custom_events, context); + free(context); if (!name) return; bar_manager_custom_events_trigger(bar_manager, name); - free(context); }