mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
BaseTools/VolInfo: Fix file handles not being closed
Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
4d32be8888
commit
2a9afe80c3
@ -2191,6 +2191,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
GPtr = malloc (sizeof (GUID_TO_BASENAME));
|
GPtr = malloc (sizeof (GUID_TO_BASENAME));
|
||||||
if (GPtr == NULL) {
|
if (GPtr == NULL) {
|
||||||
|
fclose (Fptr);
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user