Don't leak memory if multiple -f flags are given.

OK nicm@
This commit is contained in:
Ray Lai 2009-06-02 10:49:40 +00:00
parent 29d4016572
commit df91860b52

2
tmux.c
View File

@ -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':