mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user