mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 03:47:14 +00:00
Don't leak memory if multiple -f flags are given.
OK nicm@
This commit is contained in:
parent
29d4016572
commit
df91860b52
1 changed files with 2 additions and 0 deletions
2
tmux.c
2
tmux.c
|
|
@ -227,6 +227,8 @@ main(int argc, char **argv)
|
|||
flags &= ~IDENTIFY_256COLOURS;
|
||||
break;
|
||||
case 'f':
|
||||
if (cfg_file)
|
||||
xfree(cfg_file);
|
||||
cfg_file = xstrdup(optarg);
|
||||
break;
|
||||
case 'L':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue