aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar lbonn <bonnans.l@gmail.com>2019-09-07 23:41:33 +0200
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-11-01 12:18:09 -0400
commita6307aed0089a35b5594f910c9604262b46832e6 (patch)
tree4cab6ca6b96b6cabfe224996fc3e8747e4e51272 /sway/main.c
parentseat: simplify a strdup (diff)
downloadsway-a6307aed0089a35b5594f910c9604262b46832e6.tar.gz
sway-a6307aed0089a35b5594f910c9604262b46832e6.tar.zst
sway-a6307aed0089a35b5594f910c9604262b46832e6.zip
Fix various memory leaks
Found with clang-tidy
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 177c0aa1..2cc69dfb 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -259,6 +259,7 @@ int main(int argc, char **argv) {
259 exit(EXIT_SUCCESS); 259 exit(EXIT_SUCCESS);
260 break; 260 break;
261 case 'c': // config 261 case 'c': // config
262 free(config_path);
262 config_path = strdup(optarg); 263 config_path = strdup(optarg);
263 break; 264 break;
264 case 'C': // validate 265 case 'C': // validate