subroutine lambda_destroy(self) implicit none type(lambda_obj) :: self if (associated(self%lambdaptr)) nullify(self%lambdaptr) end subroutine lambda_destroy