From d566c780e54010112d499707cd80a594144d1a89 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 16 Apr 2017 20:33:46 +0000 Subject: Memory leak, from David CARLIER. --- tmux.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index 2e8b6205..d836aacf 100644 --- a/tmux.c +++ b/tmux.c @@ -141,6 +141,8 @@ make_label(const char *label) if (realpath(base, resolved) == NULL) strlcpy(resolved, base, sizeof resolved); xasprintf(&path, "%s/%s", resolved, label); + + free(base); return (path); fail: -- cgit