aboutsummaryrefslogtreecommitdiff
path: root/sway/config/output.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-15 22:09:04 +0100
committerGitHub <noreply@github.com>2018-07-15 22:09:04 +0100
commitb314a8f2cc792aa59d8f12e5adb9aed2967af646 (patch)
tree74468af2643af7ad9315fb983acad8b8f69f8c4b /sway/config/output.c
parent87334dbccb2c00ab72e96d4b58cf128dfbf8f751 (diff)
parent9559e3e2afeabc5fd68ee0679ad9b5745c92425b (diff)
Merge pull request #2280 from ianyfan/leaks
Fix some memory leaks
Diffstat (limited to 'sway/config/output.c')
-rw-r--r--sway/config/output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 205e2633..1bf9e5f1 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -207,6 +207,8 @@ void apply_output_config(struct output_config *oc, struct sway_container *output
output->sway_output->bg_pid = fork();
if (output->sway_output->bg_pid == 0) {
execvp(cmd[0], cmd);
+ } else {
+ free(command);
}
}
if (oc && oc->dpms_state != DPMS_IGNORE) {