From: Christian Storm <[email protected]> The allocated memory and file handles via get_volumes() is actually never released: While close_volumes() is defined, it's never called. Fix it by calling close_volumes().
Signed-off-by: Christian Storm <[email protected]> --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 7949218..0bec838 100644 --- a/main.c +++ b/main.c @@ -160,6 +160,11 @@ EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table) EFI_OUT_OF_RESOURCES); } + status = close_volumes(volumes, volume_count); + if (EFI_ERROR(status)) { + WARNING(L"Cannot close volumes.\n", status); + } + if (bg_loader_params.timeout == 0) { WARNING(L"Watchdog is disabled.\n"); } else { -- 2.32.0 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20210817125747.49713-1-christian.storm%40siemens.com.
