diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-02-15 22:51:17 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-02-15 22:51:17 +0000 |
| commit | 0b62b5cd53c5ae58fe724db7d84d351466a161c9 (patch) | |
| tree | 205b35cfe363605d531fe282ae7b2d1c6a9e6fa5 /kjarna/efi/protocol.c | |
| parent | 96ff1a24a7474b91c44a3dcd6f3abf3ec0542191 (diff) | |
free resources
Diffstat (limited to 'kjarna/efi/protocol.c')
| -rw-r--r-- | kjarna/efi/protocol.c | 9 |
1 files changed, 9 insertions, 0 deletions
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); +} + |
