uefi-capsule: Fix a tiny memory leak when falling back to the app path

Found by Coverity.
This commit is contained in:
Richard Hughes 2022-07-10 11:21:33 +01:00
parent 0e870cc576
commit f45c10bd26

View File

@ -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)