diff options
author | 2015-11-20 22:02:54 +0000 | |
---|---|---|
committer | 2015-11-20 22:02:54 +0000 | |
commit | 59fc359a7f666fa984931c763ac7539cb6d0c84e (patch) | |
tree | 511724472b6e78d70df704926d82af7f66c59943 /usr.bin/tmux/cmd-if-shell.c | |
parent | Fix multiple issues regarding process group and signal mask handling (diff) | |
download | wireguard-openbsd-59fc359a7f666fa984931c763ac7539cb6d0c84e.tar.xz wireguard-openbsd-59fc359a7f666fa984931c763ac7539cb6d0c84e.zip |
Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.
Diffstat (limited to 'usr.bin/tmux/cmd-if-shell.c')
-rw-r--r-- | usr.bin/tmux/cmd-if-shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c index 2154afafce6..cb360c9de63 100644 --- a/usr.bin/tmux/cmd-if-shell.c +++ b/usr.bin/tmux/cmd-if-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-if-shell.c,v 1.34 2015/10/31 08:13:58 nicm Exp $ */ +/* $OpenBSD: cmd-if-shell.c,v 1.35 2015/11/20 22:02:54 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -97,6 +97,7 @@ cmd_if_shell_exec(struct cmd *self, struct cmd_q *cmdq) cmd = args->argv[1]; else if (args->argc == 3) cmd = args->argv[2]; + free(shellcmd); if (cmd == NULL) return (CMD_RETURN_NORMAL); if (cmd_string_parse(cmd, &cmdlist, NULL, 0, &cause) != 0) { |