hush: plug a memory leak
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user