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