]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix the issue that memory for device path is incorrectly freed, which leads to the...
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Dec 2008 15:59:27 +0000 (15:59 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Dec 2008 15:59:27 +0000 (15:59 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7001 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/GenericBdsLib/DevicePath.c

index 19413726282c0f0534b37ff97c4545c5b38d3dae..135fa63d1a018995d57a80f652243aad6115ded7 100644 (file)
@@ -1475,10 +1475,6 @@ DevicePathToStr (
     //\r
     DevPathNode = NextDevicePathNode (DevPathNode);\r
   }\r
-  //\r
-  // Shrink pool used for string allocation\r
-  //\r
-  FreePool (DevPath);\r
 \r
 Done:\r
   NewSize = (Str.len + 1) * sizeof (CHAR16);\r