Fix run broken issue for EdkUnixPkg
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Apr 2007 09:19:16 +0000 (09:19 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Apr 2007 09:19:16 +0000 (09:19 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2560 6f19259b-4bc3-4df7-8a09-765794883524

EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.c

index d3feef8..9de82cc 100644 (file)
@@ -507,7 +507,9 @@ Error:
     // Free private data\r
     //\r
     if (Private != NULL) {\r
-      FreePool (Private->LineBuffer);\r
+      if (Private->LineBuffer != NULL) {\r
+        FreePool (Private->LineBuffer);\r
+      }\r
       FreePool (Private);\r
     }\r
   }\r