summaryrefslogtreecommitdiffstats
path: root/cmd-if-shell.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-if-shell.c
parent40fefe2cbc92012d4ec5261ce71a57a112c5ec12 (diff)
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.c1
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) {