From 4a753dbefc2e67c218cf41141eaa6afab00f774a Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 23 Aug 2021 11:04:21 +0000 Subject: Fix a few memory leaks. --- tmux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tmux.c') 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)); -- cgit v1.2.3