forked from xt-sys/exectos
Properly free memory after reading a file
This commit is contained in:
parent
e86313603a
commit
5a013e3ab5
@ -633,7 +633,7 @@ BlReadFile(IN PEFI_FILE_HANDLE DirHandle,
|
|||||||
|
|
||||||
/* Close handle and free memory */
|
/* Close handle and free memory */
|
||||||
FileHandle->Close(FileHandle);
|
FileHandle->Close(FileHandle);
|
||||||
BlFreeMemoryPool(&FileInfo);
|
BlFreeMemoryPool(FileInfo);
|
||||||
|
|
||||||
/* Return success */
|
/* Return success */
|
||||||
return STATUS_EFI_SUCCESS;
|
return STATUS_EFI_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user