diff --git a/tmux.c b/tmux.c index b9d502e3..820ffb6b 100644 --- a/tmux.c +++ b/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':