mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 07:04:28 +00:00
fw_env: Fix double free
addr0 is being freed twice, leading to segmentation fault Signed-off-by: Björn Stenberg <bjorn@haxx.se>
This commit is contained in:
parent
c8aac24629
commit
2b4ea2b344
1 changed files with 1 additions and 1 deletions
2
tools/env/fw_env.c
vendored
2
tools/env/fw_env.c
vendored
|
@ -1566,7 +1566,7 @@ int fw_env_open(struct env_opts *opts)
|
|||
free(addr0);
|
||||
|
||||
if (addr1)
|
||||
free(addr0);
|
||||
free(addr1);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue