mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
hush: Fix bogus free() call
An off-by-one error in hush.c resulted in an unintentional free() call every time a command was executed Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
This commit is contained in:
parent
ff27650bb2
commit
197324d7d9
1 changed files with 1 additions and 1 deletions
|
@ -2002,7 +2002,7 @@ static int free_pipe(struct pipe *pi, int indent)
|
|||
#ifndef __U_BOOT__
|
||||
globfree(&child->glob_result);
|
||||
#else
|
||||
for (a = child->argc;a >= 0;a--) {
|
||||
for (a = 0; a < child->argc; a++) {
|
||||
free(child->argv[a]);
|
||||
}
|
||||
free(child->argv);
|
||||
|
|
Loading…
Add table
Reference in a new issue