/* Free memory associated with a variable serialization instance */
RETURN_STATUS EFIAPI SerializeVariablesFreeInstance(IN EFI_HANDLE Handle)
/* Free memory associated with a variable serialization instance */
RETURN_STATUS EFIAPI SerializeVariablesFreeInstance(IN EFI_HANDLE Handle)
{
  SV_INSTANCE  *Instance;
  Instance = SV_FROM_HANDLE (Handle);
  if (Instance->Signature != SV_SIGNATURE) {
    return RETURN_INVALID_PARAMETER;
  }
  Instance->Signature = 0;
  if (Instance->BufferPtr != NULL) {
    FreePool (Instance->BufferPtr);
  }
  FreePool (Instance);
  return RETURN_SUCCESS;
}