]> code.delx.au - refind/blobdiff - refind/driver_support.c
Version 0.4.6 release, with UEFI legacy boot support.
[refind] / refind / driver_support.c
index 4780dae17a11711811539645e4fe1ae22643660c..b8cb8b091839572f0e4b0e4891ecaaae5f4877e3 100644 (file)
@@ -228,24 +228,19 @@ LibScanHandleDatabase (
             }
           }
 
-          FreePool (OpenInfo);
+          MyFreePool (OpenInfo);
         }
       }
 
-      FreePool (ProtocolGuidArray);
+      MyFreePool (ProtocolGuidArray);
     }
   }
 
   return EFI_SUCCESS;
 
 Error:
-  if (*HandleType != NULL) {
-    FreePool (*HandleType);
-  }
-
-  if (*HandleBuffer != NULL) {
-    FreePool (*HandleBuffer);
-  }
+  MyFreePool (*HandleType);
+  MyFreePool (*HandleBuffer);
 
   *HandleCount  = 0;
   *HandleBuffer = NULL;