mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 06:56:58 +00:00
Don't leak if arguments appear multiple times, from Tiago Cunha.
This commit is contained in:
@ -67,7 +67,8 @@ cmd_unbind_key_parse(struct cmd *self, int argc, char **argv, char **cause)
|
||||
no_prefix = 1;
|
||||
break;
|
||||
case 't':
|
||||
data->tablename = xstrdup(optarg);
|
||||
if (data->tablename == NULL)
|
||||
data->tablename = xstrdup(optarg);
|
||||
break;
|
||||
default:
|
||||
goto usage;
|
||||
|
Reference in New Issue
Block a user