aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-19 08:24:39 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-19 08:24:39 -0400
commit0f29f048167739c6f92d241d2aacbfcf6972c39c (patch)
tree2c3a6b1515aa09390424d69950752ee8122ba672
parentFree environment vars after loading config (diff)
downloadsway-0f29f048167739c6f92d241d2aacbfcf6972c39c.tar.gz
sway-0f29f048167739c6f92d241d2aacbfcf6972c39c.tar.zst
sway-0f29f048167739c6f92d241d2aacbfcf6972c39c.zip
Set test to NULL when appropriate
Thanks @SyedAmerGilani
-rw-r--r--sway/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index e74bfb65..f38e37b6 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -124,6 +124,7 @@ static char *get_config_path() {
124 return test; 124 return test;
125 } 125 }
126 free(test); 126 free(test);
127 test = NULL;
127 } 128 }
128 free_flat_list(paths); 129 free_flat_list(paths);
129 } 130 }