mirror of
https://github.com/tmux/tmux.git
synced 2025-09-07 03:48:20 +00:00
Fixes for memory leaks reported by Lu Ming Yin, fixes from Howard Chu.
This commit is contained in:
@@ -143,6 +143,7 @@ cmd_command_prompt_exec(struct cmd *self, struct cmdq_item *item)
|
||||
cdata->prompt_type = status_prompt_type(type);
|
||||
if (cdata->prompt_type == PROMPT_TYPE_INVALID) {
|
||||
cmdq_error(item, "unknown type: %s", type);
|
||||
cmd_command_prompt_free(cdata);
|
||||
return (CMD_RETURN_ERROR);
|
||||
}
|
||||
} else
|
||||
|
Reference in New Issue
Block a user