diff options
-rw-r--r-- | EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c b/EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c index d3feef8ee4..9de82ccf11 100644 --- a/EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c +++ b/EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c @@ -507,7 +507,9 @@ Error: // Free private data
//
if (Private != NULL) {
- FreePool (Private->LineBuffer);
+ if (Private->LineBuffer != NULL) {
+ FreePool (Private->LineBuffer);
+ }
FreePool (Private);
}
}
|