BaseTools: Correct GenSec argument dummy free memory issue

Free DummyFileBuffer and set DummyFileBuffer to NULL.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
Feng, YunhuaX 2018-04-10 09:09:45 +08:00 committed by Yonghong Zhu
parent 8b0e67821b
commit 6ecab5ad07
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/** @file
Creates output file that is a properly formed section per the PI spec.
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -1376,6 +1376,7 @@ Returns:
}
if (DummyFileBuffer != NULL) {
free (DummyFileBuffer);
DummyFileBuffer = NULL;
}
if (InFileBuffer != NULL) {
free (InFileBuffer);