mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
BaseTools/EfiRom: 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
8500665494
commit
1e124de018
@ -176,9 +176,6 @@ Returns:
|
|||||||
|
|
||||||
BailOut:
|
BailOut:
|
||||||
if (Status == STATUS_SUCCESS) {
|
if (Status == STATUS_SUCCESS) {
|
||||||
if (FptrOut != NULL) {
|
|
||||||
fclose (FptrOut);
|
|
||||||
}
|
|
||||||
//
|
//
|
||||||
// Clean up our file list
|
// Clean up our file list
|
||||||
//
|
//
|
||||||
@ -189,6 +186,10 @@ BailOut:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FptrOut != NULL) {
|
||||||
|
fclose (FptrOut);
|
||||||
|
}
|
||||||
|
|
||||||
if (mOptions.Verbose) {
|
if (mOptions.Verbose) {
|
||||||
VerboseMsg("%s tool done with return code is 0x%x.\n", UTILITY_NAME, GetUtilityStatus ());
|
VerboseMsg("%s tool done with return code is 0x%x.\n", UTILITY_NAME, GetUtilityStatus ());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user