From f45c10bd26fd51bf0d8433c71b888974ecc31066 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sun, 10 Jul 2022 11:21:33 +0100 Subject: [PATCH] uefi-capsule: Fix a tiny memory leak when falling back to the app path Found by Coverity. --- plugins/uefi-capsule/fu-uefi-bootmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/uefi-capsule/fu-uefi-bootmgr.c b/plugins/uefi-capsule/fu-uefi-bootmgr.c index 4254b978e..1fd6f456d 100644 --- a/plugins/uefi-capsule/fu-uefi-bootmgr.c +++ b/plugins/uefi-capsule/fu-uefi-bootmgr.c @@ -301,6 +301,7 @@ fu_uefi_bootmgr_bootnext(FuDevice *device, if (fu_device_has_private_flag( device, FU_UEFI_DEVICE_FLAG_FALLBACK_TO_REMOVABLE_PATH)) { + g_free(shim_app); shim_app = fu_uefi_get_fallback_app_path(device, esp_path, "boot", error); if (shim_app == NULL)