diff --git a/src/components/tl/mlx5/tl_mlx5_context.c b/src/components/tl/mlx5/tl_mlx5_context.c index 1bf21d50c0..8e6e764a22 100644 --- a/src/components/tl/mlx5/tl_mlx5_context.c +++ b/src/components/tl/mlx5/tl_mlx5_context.c @@ -74,7 +74,7 @@ UCC_CLASS_CLEANUP_FUNC(ucc_tl_mlx5_context_t) tl_debug(self->super.super.lib, "failed to free ib ctx and pd"); }; - if (!self->sock) { + if (self->sock) { close(self->sock); }