config: remove double free of config->swaynag_command

Fixes #2796
This commit is contained in:
Rouven Czerwinski 2018-10-09 13:10:39 +02:00
parent 4bebee620f
commit 1eb0dc2922

View File

@ -73,8 +73,6 @@ void free_config(struct sway_config *config) {
memset(&config->handler_context, 0, sizeof(config->handler_context)); memset(&config->handler_context, 0, sizeof(config->handler_context));
free(config->swaynag_command);
// TODO: handle all currently unhandled lists as we add implementations // TODO: handle all currently unhandled lists as we add implementations
if (config->symbols) { if (config->symbols) {
for (int i = 0; i < config->symbols->length; ++i) { for (int i = 0; i < config->symbols->length; ++i) {