From 2b4ea2b34416b892fdf54d8f334106f9bf4df8ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Stenberg?= Date: Wed, 17 Apr 2019 16:56:54 +0200 Subject: [PATCH] fw_env: Fix double free MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit addr0 is being freed twice, leading to segmentation fault Signed-off-by: Björn Stenberg --- tools/env/fw_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5