diff options
author | nicm <nicm> | 2015-11-20 22:02:54 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-11-20 22:02:54 +0000 |
commit | 933929cd622478bb43afe590670613da2e9ff359 (patch) | |
tree | 16bd81b16a74bbc0b42d1406f47e39402bc6c503 /cmd-if-shell.c | |
parent | 40fefe2cbc92012d4ec5261ce71a57a112c5ec12 (diff) | |
download | rtmux-933929cd622478bb43afe590670613da2e9ff359.tar.gz rtmux-933929cd622478bb43afe590670613da2e9ff359.tar.bz2 rtmux-933929cd622478bb43afe590670613da2e9ff359.zip |
Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r-- | cmd-if-shell.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c index a9c84261..47f259e7 100644 --- a/cmd-if-shell.c +++ b/cmd-if-shell.c @@ -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) { |