Memory leaks, from Igor Wong in GitHub issue 1934.

This commit is contained in:
nicm
2019-10-14 08:38:07 +00:00
parent 4e2cc0ae2a
commit 68d59a16ce
3 changed files with 3 additions and 0 deletions

1
tmux.c
View File

@ -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;