config: key binding: free pipe cmd/argv when action is invalid

This commit is contained in:
Daniel Eklöf 2020-09-08 19:09:36 +02:00
parent eb45cb7b60
commit 04e8588e05
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1107,6 +1107,8 @@ parse_section_key_bindings(
LOG_AND_NOTIFY_ERR("%s:%u: [key-bindings]: %s: invalid action",
path, lineno, key);
free(pipe_cmd);
free(pipe_argv);
return false;
}