aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-11-21 14:24:33 +0000
committerThomas Adam <thomas@xteddy.org>2015-11-21 14:24:33 +0000
commit78a00c845cc4d4e80f36f7cda71e0ca9ea13dcf4 (patch)
tree293ff608c1e12ad04b811b5410beb8bd50386c49 /cmd-new-window.c
parent2c482939fdd92f1bd187cdcc661890dfa4e45512 (diff)
parent933929cd622478bb43afe590670613da2e9ff359 (diff)
downloadrtmux-78a00c845cc4d4e80f36f7cda71e0ca9ea13dcf4.tar.gz
rtmux-78a00c845cc4d4e80f36f7cda71e0ca9ea13dcf4.tar.bz2
rtmux-78a00c845cc4d4e80f36f7cda71e0ca9ea13dcf4.zip
Merge branch 'obsd-master'
Conflicts: tmux.h
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;