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:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user