From 4e8bf5b328d8225f8f41a8b9d5229bd5f3775270 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Thu, 15 Nov 2018 23:48:11 +1000 Subject: [PATCH] Fix double free of mode config->current_mode is a pointer into the config->modes list, and each mode has already been freed. Same with bars. --- sway/config.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sway/config.c b/sway/config.c index e9b55061..c1320acf 100644 --- a/sway/config.c +++ b/sway/config.c @@ -123,8 +123,6 @@ void free_config(struct sway_config *config) { } list_free(config->criteria); } - free_mode(config->current_mode); - free_bar_config(config->current_bar); list_free(config->no_focus); list_free(config->active_bar_modifiers); list_free(config->config_chain);