From: Björn Stenberg Date: Wed, 17 Apr 2019 14:56:54 +0000 (+0200) Subject: fw_env: Fix double free X-Git-Tag: v2019.07-rc1~4^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b4ea2b34416b892fdf54d8f334106f9bf4df8ae;p=oweals%2Fu-boot.git fw_env: Fix double free addr0 is being freed twice, leading to segmentation fault Signed-off-by: Björn Stenberg --- 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; }