mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 05:34:31 +02:00
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
@ -1671,6 +1671,10 @@ Finish:
|
|||||||
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…
x
Reference in New Issue
Block a user