mirror of
https://github.com/tmux/tmux.git
synced 2024-12-24 10:08:48 +00:00
args_make_commands_now needs to take an extra reference to the returned
command list since it will be freed already.
This commit is contained in:
parent
210e71edf3
commit
841ce74b43
@ -497,11 +497,13 @@ args_make_commands_now(struct cmd *self, struct cmdq_item *item, u_int idx)
|
||||
|
||||
state = args_make_commands_prepare(self, item, idx, NULL, 0, 0);
|
||||
cmdlist = args_make_commands(state, 0, NULL, &error);
|
||||
args_make_commands_free(state);
|
||||
if (cmdlist == NULL) {
|
||||
cmdq_error(item, "%s", error);
|
||||
free(error);
|
||||
}
|
||||
else
|
||||
cmdlist->references++;
|
||||
args_make_commands_free(state);
|
||||
return (cmdlist);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user