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:
Hao Wu 2017-12-18 15:59:53 +08:00
parent 33fc1fc46d
commit ae0fbb7f5a
1 changed files with 5 additions and 1 deletions

View File

@ -1670,7 +1670,11 @@ Finish:
if (OutFile != NULL) {
fclose (OutFile);
}
if (DummyFileBuffer != NULL) {
free (DummyFileBuffer);
}
VerboseMsg ("%s tool done with return code is 0x%x.", UTILITY_NAME, GetUtilityStatus ());
return GetUtilityStatus ();