summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2017-04-16 20:33:46 +0000
committernicm <nicm>2017-04-16 20:33:46 +0000
commitd566c780e54010112d499707cd80a594144d1a89 (patch)
treed8f2ba3ae34639250b5abf449f23794aabddf05b /tmux.c
parent54bcaab70e34d887aa89a37f76d64166ed1c28e1 (diff)
Memory leak, from David CARLIER.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c2
1 files changed, 2 insertions, 0 deletions
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: