diff options
author | Eric Dong <eric.dong@intel.com> | 2014-02-12 03:34:48 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-02-12 03:34:48 +0000 |
commit | 5dc6ab16971eb237a90099ac7c496ebef3902e6a (patch) | |
tree | 74ff31e1c340810e79f93278b7421f990d208666 /MdeModulePkg/Universal | |
parent | f3a14a0f575e7e856ff4d90d7d0ab73f7e02ae41 (diff) | |
download | edk2-platforms-5dc6ab16971eb237a90099ac7c496ebef3902e6a.tar.xz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c b/MdeModulePkg/Universal/SetupBrowserDxe/Setup.c index cf1d57549a..d1c6961a05 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;
}
|