summaryrefslogtreecommitdiff
path: root/sway/commands/input/pointer_accel.c
diff options
context:
space:
mode:
authoremersion <[email protected]>2018-07-02 09:06:02 +0100
committerGitHub <[email protected]>2018-07-02 09:06:02 +0100
commitdefb73596fedec846280b9155bb3e9d210da49bb (patch)
tree0a3e6c9e5efaf0e8bb5f01ab7691350cd063ebcb /sway/commands/input/pointer_accel.c
parent649e084f41295be761c0e9137831281b220dd970 (diff)
parent2725185aeba3ae5dd4ab129158cb4677a8a63042 (diff)
Merge pull request #2186 from martinetd/static-analysis
Static analysis fixes
Diffstat (limited to 'sway/commands/input/pointer_accel.c')
-rw-r--r--sway/commands/input/pointer_accel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/input/pointer_accel.c b/sway/commands/input/pointer_accel.c
index 171063aa..8bbd0724 100644
--- a/sway/commands/input/pointer_accel.c
+++ b/sway/commands/input/pointer_accel.c
@@ -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]");
}