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:
committed by
Yonghong Zhu
parent
8b0e67821b
commit
6ecab5ad07
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Creates output file that is a properly formed section per the PI spec.
|
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
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -1376,6 +1376,7 @@ Returns:
|
|||||||
}
|
}
|
||||||
if (DummyFileBuffer != NULL) {
|
if (DummyFileBuffer != NULL) {
|
||||||
free (DummyFileBuffer);
|
free (DummyFileBuffer);
|
||||||
|
DummyFileBuffer = NULL;
|
||||||
}
|
}
|
||||||
if (InFileBuffer != NULL) {
|
if (InFileBuffer != NULL) {
|
||||||
free (InFileBuffer);
|
free (InFileBuffer);
|
||||||
|
Reference in New Issue
Block a user