summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-08-23 16:06:46 +0100
committerThomas Adam <thomas@xteddy.org>2021-08-23 16:06:46 +0100
commit95a374d7d20dde938563a9f92c8ffc1e25bd4050 (patch)
tree596cfdc4aa9c9d7a0f04cd1c8b541e86ede90eef /tmux.c
parent1dec1ca146882572e261f2f2f55d9060c06a0212 (diff)
parent210e71edf36198e3f22525e7f548a71a5681d25c (diff)
Merge branch 'obsd-master' into master
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 1fdba727..11c368ff 100644
--- a/tmux.c
+++ b/tmux.c
@@ -207,6 +207,7 @@ make_label(const char *label, char **cause)
free(paths);
xasprintf(&base, "%s/tmux-%ld", path, (long)uid);
+ free(path);
if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST) {
xasprintf(cause, "couldn't create directory %s (%s)", base,
strerror(errno));