mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
efi_loader: endless loop in add_strings_package()
Avoid an endless loop in add_strings_package(). Suggested-by: Takahiro Akashi <takahiro.akashi@linaro.org> Reported-by: Coverity (CID 185833) Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
306b16718e
commit
bd3b7478d1
1 changed files with 2 additions and 3 deletions
|
@ -227,9 +227,8 @@ out:
|
|||
error:
|
||||
if (stbl) {
|
||||
free(stbl->language);
|
||||
if (idx > 0)
|
||||
while (--idx >= 0)
|
||||
free(stbl->strings[idx].string);
|
||||
while (idx > 0)
|
||||
free(stbl->strings[--idx].string);
|
||||
free(stbl->strings);
|
||||
}
|
||||
free(stbl);
|
||||
|
|
Loading…
Add table
Reference in a new issue