mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05: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
|
|
@ -20,6 +20,7 @@ struct cmd_results *input_cmd_pointer_accel(int argc, char **argv) {
|
|||
|
||||
float pointer_accel = atof(argv[0]);
|
||||
if (pointer_accel < -1 || pointer_accel > 1) {
|
||||
free_input_config(new_config);
|
||||
return cmd_results_new(CMD_INVALID, "pointer_accel",
|
||||
"Input out of range [-1, 1]");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue