mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
input_config: free new_input_config on error
Found through static analysis.
This commit is contained in:
parent
ebe69583c7
commit
5690bea227
14 changed files with 21 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ struct cmd_results *input_cmd_scroll_method(int argc, char **argv) {
|
|||
} else if (strcasecmp(argv[0], "on_button_down") == 0) {
|
||||
new_config->scroll_method = LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN;
|
||||
} else {
|
||||
free_input_config(new_config);
|
||||
return cmd_results_new(CMD_INVALID, "scroll_method",
|
||||
"Expected 'scroll_method <none|two_finger|edge|on_button_down>'");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue