From 5a013e3ab5e04e9a726f282baea56d721f8aaa78 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Tue, 30 Apr 2024 12:27:27 +0200 Subject: [PATCH] Properly free memory after reading a file --- xtldr/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtldr/volume.c b/xtldr/volume.c index 3e23c550..e4b55c2a 100644 --- a/xtldr/volume.c +++ b/xtldr/volume.c @@ -633,7 +633,7 @@ BlReadFile(IN PEFI_FILE_HANDLE DirHandle, /* Close handle and free memory */ FileHandle->Close(FileHandle); - BlFreeMemoryPool(&FileInfo); + BlFreeMemoryPool(FileInfo); /* Return success */ return STATUS_EFI_SUCCESS;