]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/DebugSupport/Dxe/DebugSupport.c
Clean up the gBS sevice (CopyMem, SetMem, AllocatePool, FreePool) with the correspond...
[mirror_edk2.git] / EdkModulePkg / Universal / DebugSupport / Dxe / DebugSupport.c
index 118e9b7979a6785ddda4a81b8b90e8dc26cb2f9c..a0ec6c5934bb5a8b4285e6bbcb40339b55899f68 100644 (file)
@@ -96,12 +96,12 @@ Returns:
                       EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                       );\r
       if (Status == EFI_SUCCESS && DebugSupportProtocolPtr->Isa == EFI_ISA) {\r
-        gBS->FreePool (HandlePtr);\r
+        FreePool (HandlePtr);\r
         Status = EFI_ALREADY_STARTED;\r
         goto ErrExit;\r
       }\r
     } while (NumHandles > 0);\r
-    gBS->FreePool (HandlePtr);\r
+    FreePool (HandlePtr);\r
   }\r
 \r
   //\r