diff options
| -rw-r--r-- | mok.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -604,7 +604,7 @@ mirror_mok_db(CHAR16 *name, EFI_GUID *guid, UINT32 attrs, return efi_status; } - CHAR16 *namen; + CHAR16 *namen = NULL; UINTN namelen, namesz; namelen = StrLen(name); @@ -726,6 +726,9 @@ mirror_mok_db(CHAR16 *name, EFI_GUID *guid, UINT32 attrs, break; i++; } + if (namen && namen != name) { + FreePool(namen); + } if (EFI_ERROR(efi_status)) { perror(L"Failed to set %s: %r\n", name, efi_status); |
