summaryrefslogtreecommitdiff
path: root/EdkModulePkg
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-11 09:19:16 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-11 09:19:16 +0000
commitfdbc81c8cde898dfaa6ffd3c703f38099561efb2 (patch)
treec55fef5b61f993b7706037c36e5397241d064191 /EdkModulePkg
parentaaed63a98d57d0004f60ee650b5c942c120eb2fa (diff)
downloadedk2-platforms-fdbc81c8cde898dfaa6ffd3c703f38099561efb2.tar.xz
Fix run broken issue for EdkUnixPkg
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2560 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg')
-rw-r--r--EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c4
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);
}
}