File tree 1 file changed +9
-1
lines changed
MdeModulePkg/Universal/HiiDatabaseDxe
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
/** @file
2
2
Implementation for EFI_HII_DATABASE_PROTOCOL.
3
3
4
- Copyright (c) 2007 - 2019 , Intel Corporation. All rights reserved.<BR>
4
+ Copyright (c) 2007 - 2020 , Intel Corporation. All rights reserved.<BR>
5
5
SPDX-License-Identifier: BSD-2-Clause-Patent
6
6
7
7
**/
@@ -3376,6 +3376,10 @@ HiiGetConfigRespInfo(
3376
3376
if (gRTConfigRespBuffer == NULL ){
3377
3377
FreePool (ConfigAltResp );
3378
3378
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 );
3379
3383
return EFI_OUT_OF_RESOURCES ;
3380
3384
}
3381
3385
} else {
@@ -3431,6 +3435,10 @@ HiiGetDatabaseInfo(
3431
3435
gRTDatabaseInfoBuffer = AllocateRuntimeZeroPool (gDatabaseInfoSize );
3432
3436
if (gRTDatabaseInfoBuffer == NULL ){
3433
3437
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 );
3434
3442
return EFI_OUT_OF_RESOURCES ;
3435
3443
}
3436
3444
} else {
You can’t perform that action at this time.
0 commit comments