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
This commit is contained in:
Eric Dong 2014-02-12 03:34:48 +00:00 committed by ydong10
parent f3a14a0f57
commit 5dc6ab1697
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}