diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-01-04 23:00:56 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-01-04 23:00:56 -0500 |
commit | caaff5ac543e050fe6d2208ac4eac096f80cb86d (patch) | |
tree | 9ad4317e4c86bee12c4f88ee8ff371a3d3f2f2f0 /sway/config.c | |
parent | 33b24736c78d9993a26d295ea3e56ad77d6f1390 (diff) |
Revert "Free wordexp_t in config.c:get_config_path"
This reverts commit 33b24736c78d9993a26d295ea3e56ad77d6f1390.
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 2 |
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) { if (wordexp(config_paths[i], &p, 0) == 0) { path = p.we_wordv[0]; if (file_exists(path)) { - wordfree(&p); return path; } } - wordfree(&p); } return NULL; // Not reached |