mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-09 13:54:54 +02: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