mirror of
https://github.com/tmux/tmux.git
synced 2024-12-24 01:58:46 +00:00
Fix a memory leak, from Japin Li in GitHub issue 3358.
This commit is contained in:
parent
0fc961b22e
commit
2111142cf1
@ -1086,7 +1086,8 @@ cmd_parse_from_arguments(struct args_value *values, u_int count,
|
||||
arg->type = CMD_PARSE_STRING;
|
||||
arg->string = copy;
|
||||
TAILQ_INSERT_TAIL(&cmd->arguments, arg, entry);
|
||||
}
|
||||
} else
|
||||
free(copy);
|
||||
} else if (values[i].type == ARGS_COMMANDS) {
|
||||
arg = xcalloc(1, sizeof *arg);
|
||||
arg->type = CMD_PARSE_PARSED_COMMANDS;
|
||||
|
Loading…
Reference in New Issue
Block a user