File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
MdeModulePkg/Universal/HiiDatabaseDxe Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11/** @file
22Implementation for EFI_HII_DATABASE_PROTOCOL.
33
4- Copyright (c) 2007 - 2019 , Intel Corporation. All rights reserved.<BR>
4+ Copyright (c) 2007 - 2020 , Intel Corporation. All rights reserved.<BR>
55SPDX-License-Identifier: BSD-2-Clause-Patent
66
77**/
@@ -3376,6 +3376,10 @@ HiiGetConfigRespInfo(
33763376 if (gRTConfigRespBuffer == NULL ){
33773377 FreePool (ConfigAltResp );
33783378 DEBUG ((DEBUG_ERROR , "[HiiDatabase]: No enough memory resource to store the ConfigResp string.\n" ));
3379+ //
3380+ // Remove from the System Table when the configuration runtime buffer is freed.
3381+ //
3382+ gBS -> InstallConfigurationTable (& gEfiHiiConfigRoutingProtocolGuid , NULL );
33793383 return EFI_OUT_OF_RESOURCES ;
33803384 }
33813385 } else {
@@ -3431,6 +3435,10 @@ HiiGetDatabaseInfo(
34313435 gRTDatabaseInfoBuffer = AllocateRuntimeZeroPool (gDatabaseInfoSize );
34323436 if (gRTDatabaseInfoBuffer == NULL ){
34333437 DEBUG ((DEBUG_ERROR , "[HiiDatabase]: No enough memory resource to store the HiiDatabase info.\n" ));
3438+ //
3439+ // Remove from the System Table when the configuration runtime buffer is freed.
3440+ //
3441+ gBS -> InstallConfigurationTable (& gEfiHiiDatabaseProtocolGuid , NULL );
34343442 return EFI_OUT_OF_RESOURCES ;
34353443 }
34363444 } else {
You can’t perform that action at this time.
0 commit comments