diff options
author | Björn Stenberg <bjorn@haxx.se> | 2019-04-17 16:56:54 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-26 18:58:21 -0400 |
commit | 2b4ea2b34416b892fdf54d8f334106f9bf4df8ae (patch) | |
tree | a768e9dbf4d9198fac5d2a12bca993e0c78c6013 | |
parent | c8aac24629dec56334c27d98e993d2b3bb481b25 (diff) |
fw_env: Fix double free
addr0 is being freed twice, leading to segmentation fault
Signed-off-by: Björn Stenberg <bjorn@haxx.se>
-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; } |