diff options
3 files changed, 6 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c index 9993e4b19d..ada77d26de 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c @@ -739,9 +739,11 @@ BdsLibVariableToOption ( }
FreePool (Variable);
+ FreePool (Option->Description);
+ FreePool (Option->DevicePath);
+ FreePool (Option->LoadOptions);
FreePool (Option);
return NULL;
-
}
/**
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 2419b7c4a8..117569fa62 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -758,6 +758,7 @@ CheckModeSupported ( //
// If video device has been set to this mode, we do not need to SetMode again
//
+ FreePool (Info);
break;
} else {
Status = GraphicsOutput->SetMode (GraphicsOutput, ModeNumber);
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/String.c b/MdeModulePkg/Universal/HiiDatabaseDxe/String.c index 52d348c572..a76e5b64c9 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/String.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/String.c @@ -2028,6 +2028,8 @@ HiiCompareLanguage ( //
// Return FALSE if any characters are different.
//
+ FreePool (Lan1);
+ FreePool (Lan2);
return FALSE;
}
}
|