]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/GenericBdsLib/DevicePath.c
Remove SafeFreePool from MemoryAllocationLib as this API's name is misleading. Its...
[mirror_edk2.git] / MdeModulePkg / Library / GenericBdsLib / DevicePath.c
index 793badb313cf57bff0433344662948cfc0117e77..affb009d4b5a553b5cb65b10b3d1f2568095e9e4 100644 (file)
@@ -45,7 +45,7 @@ ReallocatePool (
       CopyMem (NewPool, OldPool, OldSize < NewSize ? OldSize : NewSize);\r
     }\r
 \r
-    SafeFreePool (OldPool);\r
+    FreePool (OldPool);\r
   }\r
 \r
   return NewPool;\r
@@ -108,7 +108,7 @@ CatPrint (
     Str->len = StringSize - sizeof (UINT16);\r
   }\r
 \r
-  SafeFreePool (AppendStr);\r
+  FreePool (AppendStr);\r
   return Str->str;\r
 }\r
 \r
@@ -1594,7 +1594,7 @@ DevicePathToStr (
   //\r
   // Shrink pool used for string allocation\r
   //\r
-  SafeFreePool (DevPath);\r
+  FreePool (DevPath);\r
 \r
 Done:\r
   NewSize = (Str.len + 1) * sizeof (CHAR16);\r