mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01: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);
|
free(addr0);
|
||||||
|
|
||||||
if (addr1)
|
if (addr1)
|
||||||
free(addr0);
|
free(addr1);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user