From 0b62b5cd53c5ae58fe724db7d84d351466a161c9 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Thu, 15 Feb 2024 22:51:17 +0000 Subject: free resources --- kjarna/efi/protocol.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'kjarna/efi/protocol.c') diff --git a/kjarna/efi/protocol.c b/kjarna/efi/protocol.c index e4be9cd..6bf8123 100644 --- a/kjarna/efi/protocol.c +++ b/kjarna/efi/protocol.c @@ -22,3 +22,12 @@ void *efi_get_protocol(EFI_HANDLE handle, EFI_GUID *guid) return protocol; } +void efi_close_protocol(EFI_HANDLE handle, EFI_GUID *guid) +{ + efi_errno = gBS->CloseProtocol( + handle, + guid, + efi_context->handle, + nullptr); +} + -- cgit v1.3.1-1-g115d