aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r--cmd-new-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index 9cead449..893fe6e2 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -107,7 +107,7 @@ cmd_new_window_exec(struct cmd *self, struct cmd_q *cmdq)
strerror(errno));
return (CMD_RETURN_ERROR);
}
- } else if (cp != NULL)
+ } else
free(cp);
cwd = fd;
} else if (cmdq->client != NULL && cmdq->client->session == NULL)