mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-24 19:53:25 +08: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
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 New Issue
Block a user