summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-10-09 13:37:20 +0200
committerLibravatar GitHub <noreply@github.com>2018-10-09 13:37:20 +0200
commite143c9613d350b74e02c5ac3c9a055ab26fc9588 (patch)
tree9837135ed3c4d816790f251d15acb792658eabe0
parentMerge pull request #2772 from RyanDwyer/improve-popup-damage (diff)
parentconfig: remove double free of config->swaynag_command (diff)
downloadsway-e143c9613d350b74e02c5ac3c9a055ab26fc9588.tar.gz
sway-e143c9613d350b74e02c5ac3c9a055ab26fc9588.tar.zst
sway-e143c9613d350b74e02c5ac3c9a055ab26fc9588.zip
Merge pull request #2804 from Emantor/swaynag-double-free
config: remove double free of config->swaynag_command
-rw-r--r--sway/config.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index a50e9144..1926bc08 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -73,8 +73,6 @@ void free_config(struct sway_config *config) {
73 73
74 memset(&config->handler_context, 0, sizeof(config->handler_context)); 74 memset(&config->handler_context, 0, sizeof(config->handler_context));
75 75
76 free(config->swaynag_command);
77
78 // TODO: handle all currently unhandled lists as we add implementations 76 // TODO: handle all currently unhandled lists as we add implementations
79 if (config->symbols) { 77 if (config->symbols) {
80 for (int i = 0; i < config->symbols->length; ++i) { 78 for (int i = 0; i < config->symbols->length; ++i) {