From 804f8f7797e1f0515759d700f02c042f38bc44b5 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Fri, 5 Jul 2013 10:57:16 +0800 Subject: [PATCH] Free unused memory space --- shim.c | 5 +++++ 1 file changed, 5 insertions(+) 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; }