diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-12 06:47:39 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-12 06:47:39 +0100 |
commit | 385cc59117f2788d24d2cd75fd58f7ff044d501c (patch) | |
tree | 39eac0ffef23597671466a3399077c9d4269445a /shell/hush.c | |
parent | 65d722bb0d0e822db014a742da4c9c2c111131f0 (diff) | |
download | busybox-w32-385cc59117f2788d24d2cd75fd58f7ff044d501c.tar.gz busybox-w32-385cc59117f2788d24d2cd75fd58f7ff044d501c.tar.bz2 busybox-w32-385cc59117f2788d24d2cd75fd58f7ff044d501c.zip |
hush: plug a memory leak
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index 25094654d..d02e68d49 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -4136,6 +4136,7 @@ static NOINLINE int run_pipe(struct pipe *pi) | |||
4136 | 4136 | ||
4137 | /* if someone gives us an empty string: `cmd with empty output` */ | 4137 | /* if someone gives us an empty string: `cmd with empty output` */ |
4138 | if (!argv_expanded[0]) { | 4138 | if (!argv_expanded[0]) { |
4139 | free(argv_expanded); | ||
4139 | debug_leave(); | 4140 | debug_leave(); |
4140 | return G.last_exitcode; | 4141 | return G.last_exitcode; |
4141 | } | 4142 | } |