From df91860b522db207a04caeb95ccea16e2600afef Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Tue, 2 Jun 2009 10:49:40 +0000 Subject: [PATCH] Don't leak memory if multiple -f flags are given. OK nicm@ --- tmux.c | 2 ++ 1 file changed, 2 insertions(+) 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':