mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
config output: free command string if unused
This commit is contained in:
parent
92450883d7
commit
9559e3e2af
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue