summaryrefslogtreecommitdiffstats
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authornicm <nicm>2015-11-20 22:02:54 +0000
committernicm <nicm>2015-11-20 22:02:54 +0000
commit933929cd622478bb43afe590670613da2e9ff359 (patch)
tree16bd81b16a74bbc0b42d1406f47e39402bc6c503 /cmd-new-window.c
parent40fefe2cbc92012d4ec5261ce71a57a112c5ec12 (diff)
Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.
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 fb89e24f..24204746 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -97,7 +97,7 @@ cmd_new_window_exec(struct cmd *self, struct cmd_q *cmdq)
ft = format_create();
format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL,
NULL);
- cwd = format_expand(ft, args_get(args, 'c'));
+ cwd = to_free = format_expand(ft, args_get(args, 'c'));
format_free(ft);
} else if (cmdq->client != NULL && cmdq->client->session == NULL)
cwd = cmdq->client->cwd;