Cc: Liming Gao <liming....@intel.com> Cc: Yonghong Zhu <yonghong....@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a...@intel.com> --- BaseTools/Source/C/GenPage/GenPage.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/BaseTools/Source/C/GenPage/GenPage.c b/BaseTools/Source/C/GenPage/GenPage.c index 5bf8bf8..16dc144 100644 --- a/BaseTools/Source/C/GenPage/GenPage.c +++ b/BaseTools/Source/C/GenPage/GenPage.c @@ -431,9 +431,11 @@ main ( // result = GenBinPage (BaseMemory, InputFile, OutputFile); if (result < 0) { + free (BaseMemory); return STATUS_ERROR; } + free (BaseMemory); return 0; } -- 1.9.5.msysgit.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel