sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 9559e3e2afeabc5fd68ee0679ad9b5745c92425b
parent 92450883d7b148d408b42c3553a60340a14771f6
Author: Ian Fan <ianfan0@gmail.com>
Date:   Sun, 15 Jul 2018 21:51:00 +0100

config output: free command string if unused

Diffstat:
Msway/config/output.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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) {