summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
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 55ab9751..ceaa99da 100644
--- a/tmux.c
+++ b/tmux.c
@@ -211,6 +211,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));