mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 04:27:00 +00:00
Do not leak on failure, GitHub 4565.
This commit is contained in:
@ -124,7 +124,7 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item)
|
||||
-1) == NULL) {
|
||||
cmdq_error(item, "failed to run command: %s", shellcmd);
|
||||
free(shellcmd);
|
||||
free(cdata);
|
||||
cmd_if_shell_free(cdata);
|
||||
return (CMD_RETURN_ERROR);
|
||||
}
|
||||
free(shellcmd);
|
||||
|
Reference in New Issue
Block a user