mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 06:56:58 +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) {
|
-1) == NULL) {
|
||||||
cmdq_error(item, "failed to run command: %s", shellcmd);
|
cmdq_error(item, "failed to run command: %s", shellcmd);
|
||||||
free(shellcmd);
|
free(shellcmd);
|
||||||
free(cdata);
|
cmd_if_shell_free(cdata);
|
||||||
return (CMD_RETURN_ERROR);
|
return (CMD_RETURN_ERROR);
|
||||||
}
|
}
|
||||||
free(shellcmd);
|
free(shellcmd);
|
||||||
|
Reference in New Issue
Block a user