summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authornicm <nicm>2019-10-14 08:38:07 +0000
committernicm <nicm>2019-10-14 08:38:07 +0000
commit68d59a16cec91d2c2747c8c2862560e89f8f2d31 (patch)
treeac11b38e92612f09782f043d0fd1e010dd308a62 /tmux.c
parent4e2cc0ae2a518371d1411bc327f113fc4898954c (diff)
Memory leaks, from Igor Wong in GitHub issue 1934.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.c b/tmux.c
index c3fe3ee6..fe2647f5 100644
--- a/tmux.c
+++ b/tmux.c
@@ -130,6 +130,7 @@ make_label(const char *label, char **cause)
free(base);
goto fail;
}
+ free(base);
if (mkdir(resolved, S_IRWXU) != 0 && errno != EEXIST)
goto fail;