diff options
author | nicm <nicm> | 2021-08-23 11:04:21 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-08-23 11:04:21 +0000 |
commit | 4a753dbefc2e67c218cf41141eaa6afab00f774a (patch) | |
tree | 6a52781c86c30894be0e2161c31154b3bdf953a0 /tmux.c | |
parent | 3ed37a207988bc6e96dc673ae4564a4efd682ea6 (diff) | |
download | rtmux-4a753dbefc2e67c218cf41141eaa6afab00f774a.tar.gz rtmux-4a753dbefc2e67c218cf41141eaa6afab00f774a.tar.bz2 rtmux-4a753dbefc2e67c218cf41141eaa6afab00f774a.zip |
Fix a few memory leaks.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)); |