summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-01-04 23:00:56 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-01-04 23:00:56 -0500
commitcaaff5ac543e050fe6d2208ac4eac096f80cb86d (patch)
tree9ad4317e4c86bee12c4f88ee8ff371a3d3f2f2f0 /sway
parentFree wordexp_t in config.c:get_config_path (diff)
downloadsway-caaff5ac543e050fe6d2208ac4eac096f80cb86d.tar.gz
sway-caaff5ac543e050fe6d2208ac4eac096f80cb86d.tar.zst
sway-caaff5ac543e050fe6d2208ac4eac096f80cb86d.zip
Revert "Free wordexp_t in config.c:get_config_path"
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index c362f388..1973de02 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -174,11 +174,9 @@ static char *get_config_path(void) {
174 if (wordexp(config_paths[i], &p, 0) == 0) { 174 if (wordexp(config_paths[i], &p, 0) == 0) {
175 path = p.we_wordv[0]; 175 path = p.we_wordv[0];
176 if (file_exists(path)) { 176 if (file_exists(path)) {
177 wordfree(&p);
178 return path; 177 return path;
179 } 178 }
180 } 179 }
181 wordfree(&p);
182 } 180 }
183 181
184 return NULL; // Not reached 182 return NULL; // Not reached