mirror of https://github.com/acidanthera/audk.git
BaseTools/GenSec: Fix potential memory leak
Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
33fc1fc46d
commit
ae0fbb7f5a
|
@ -1670,7 +1670,11 @@ Finish:
|
||||||
if (OutFile != NULL) {
|
if (OutFile != NULL) {
|
||||||
fclose (OutFile);
|
fclose (OutFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (DummyFileBuffer != NULL) {
|
||||||
|
free (DummyFileBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
VerboseMsg ("%s tool done with return code is 0x%x.", UTILITY_NAME, GetUtilityStatus ());
|
VerboseMsg ("%s tool done with return code is 0x%x.", UTILITY_NAME, GetUtilityStatus ());
|
||||||
|
|
||||||
return GetUtilityStatus ();
|
return GetUtilityStatus ();
|
||||||
|
|
Loading…
Reference in New Issue