mirror of https://github.com/acidanthera/audk.git
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:
parent
f3a14a0f57
commit
5dc6ab1697
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue