summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2014-02-12 03:34:48 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2014-02-12 03:34:48 +0000
commit5dc6ab16971eb237a90099ac7c496ebef3902e6a (patch)
tree74ff31e1c340810e79f93278b7421f990d208666 /MdeModulePkg/Universal
parentf3a14a0f575e7e856ff4d90d7d0ab73f7e02ae41 (diff)
downloadedk2-5dc6ab16971eb237a90099ac7c496ebef3902e6a.zip
edk2-5dc6ab16971eb237a90099ac7c496ebef3902e6a.tar.gz
edk2-5dc6ab16971eb237a90099ac7c496ebef3902e6a.tar.bz2
Set the free buffer pointer to NULL to avoid later free again.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15232 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/Setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
index cf1d575..d1c6961 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
@@ -3721,6 +3721,7 @@ CleanBrowserStorage (
Storage->BrowserStorage->Type == EFI_HII_VARSTORE_NAME_VALUE) {
if (Storage->BrowserStorage->ConfigRequest != NULL) {
FreePool (Storage->BrowserStorage->ConfigRequest);
+ Storage->BrowserStorage->ConfigRequest = NULL;
}
Storage->BrowserStorage->Initialized = FALSE;
}