diff options
-rw-r--r-- | SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c b/SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c index 0c28eaa0b6..7f9fdd22d7 100644 --- a/SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c +++ b/SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.c @@ -46,7 +46,6 @@ SecureBootFetchData ( OUT EFI_SIGNATURE_LIST **SigListOut
)
{
- EFI_SIGNATURE_LIST *EfiSig;
EFI_STATUS Status;
VOID *Buffer;
VOID *RsaPubKey;
@@ -57,7 +56,6 @@ SecureBootFetchData ( SECURE_BOOT_CERTIFICATE_INFO *NewCertInfo;
KeyIndex = 0;
- EfiSig = NULL;
*SigListOut = NULL;
*SigListsSize = 0;
CertInfo = AllocatePool (sizeof (SECURE_BOOT_CERTIFICATE_INFO));
@@ -82,10 +80,6 @@ SecureBootFetchData ( RsaPubKey = NULL;
if (RsaGetPublicKeyFromX509 (Buffer, Size, &RsaPubKey) == FALSE) {
DEBUG ((DEBUG_ERROR, "%a: Invalid key format: %d\n", __func__, KeyIndex));
- if (EfiSig != NULL) {
- FreePool (EfiSig);
- }
-
FreePool (Buffer);
Status = EFI_INVALID_PARAMETER;
break;
|