/* Free an EFI_BOOT_MANGER_LOAD_OPTION entry that was allocate by the library. */
EFI_STATUS EFIAPI EfiBootManagerFreeLoadOption(IN EFI_BOOT_MANAGER_LOAD_OPTION *LoadOption)
/* Free an EFI_BOOT_MANGER_LOAD_OPTION entry that was allocate by the library. */
EFI_STATUS EFIAPI EfiBootManagerFreeLoadOption(IN EFI_BOOT_MANAGER_LOAD_OPTION *LoadOption)
{
  if (LoadOption == NULL) {
    return EFI_NOT_FOUND;
  }
  if (LoadOption->Description != NULL) {
    FreePool (LoadOption->Description);
  }
  if (LoadOption->FilePath != NULL) {
    FreePool (LoadOption->FilePath);
  }
  if (LoadOption->OptionalData != NULL) {
    FreePool (LoadOption->OptionalData);
  }
  return EFI_SUCCESS;
}