diff --git a/shim.c b/shim.c index 3628543..e9e6771 100644 --- a/shim.c +++ b/shim.c @@ -643,6 +643,9 @@ static EFI_STATUS verify_mok (void) { return status; } + if (MokListData) + FreePool(MokListData); + return EFI_SUCCESS; } @@ -1421,6 +1424,8 @@ static EFI_STATUS check_mok_sb (void) } } + FreePool(MokSBState); + return status; }