From 708524f4c8cf09109eb71efa1bead137d2d4f995 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 27 Aug 2019 17:23:27 +0200 Subject: futility: avoid leak in eve's smmstore quirk Minor but Coverity Scan noticed it. BUG=none BRANCH=none TEST=none Change-Id: I08e889f8515681e4065b0c93180aec4d083c5012 Signed-off-by: Patrick Georgi Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1771971 Reviewed-by: Julius Werner Reviewed-by: Hung-Te Lin Commit-Queue: Patrick Georgi Tested-by: Patrick Georgi --- futility/updater_quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futility/updater_quirks.c b/futility/updater_quirks.c index d5f5ec62..c14f55a7 100644 --- a/futility/updater_quirks.c +++ b/futility/updater_quirks.c @@ -338,7 +338,7 @@ static int quirk_eve_smm_store(struct updater_config *cfg) " -t raw -b 0x1bf000", temp_image, FMAP_RW_LEGACY, smm_store_name, temp_image, FMAP_RW_LEGACY, smm_store_name, old_store); - host_shell(command); + free(host_shell(command)); free(command); return reload_firmware_image(temp_image, &cfg->image); -- cgit v1.2.1