diff options
author | Denys Vlasenko | 2010-01-12 06:47:39 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-01-12 06:47:39 +0100 |
commit | 385cc59117f2788d24d2cd75fd58f7ff044d501c (patch) | |
tree | 39eac0ffef23597671466a3399077c9d4269445a /shell/hush.c | |
parent | 65d722bb0d0e822db014a742da4c9c2c111131f0 (diff) | |
download | busybox-385cc59117f2788d24d2cd75fd58f7ff044d501c.zip busybox-385cc59117f2788d24d2cd75fd58f7ff044d501c.tar.gz |
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 2509465..d02e68d 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -4136,6 +4136,7 @@ static NOINLINE int run_pipe(struct pipe *pi) /* if someone gives us an empty string: `cmd with empty output` */ if (!argv_expanded[0]) { + free(argv_expanded); debug_leave(); return G.last_exitcode; } |