diff options
author | Björn Stenberg <bjorn@haxx.se> | 2019-04-17 17:56:54 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-27 01:58:21 +0300 |
commit | 2b4ea2b34416b892fdf54d8f334106f9bf4df8ae (patch) | |
tree | a768e9dbf4d9198fac5d2a12bca993e0c78c6013 /tools/env | |
parent | c8aac24629dec56334c27d98e993d2b3bb481b25 (diff) | |
download | u-boot-2b4ea2b34416b892fdf54d8f334106f9bf4df8ae.tar.xz |
fw_env: Fix double free
addr0 is being freed twice, leading to segmentation fault
Signed-off-by: Björn Stenberg <bjorn@haxx.se>
Diffstat (limited to 'tools/env')
-rw-r--r-- | tools/env/fw_env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index a5d75958e1..1ed0f7e9cb 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -1566,7 +1566,7 @@ int fw_env_open(struct env_opts *opts) free(addr0); if (addr1) - free(addr0); + free(addr1); return ret; } |