From ae61eaeb285136fdb761a0a42a8a980c777d8608 Mon Sep 17 00:00:00 2001 From: Sergey Lebedev Date: Fri, 16 Feb 2024 12:05:25 +0100 Subject: [PATCH] TL/MLX5: fix socket cleanup --- src/components/tl/mlx5/tl_mlx5_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }