Skip to content

Commit

Permalink
remove extra free 5
Browse files Browse the repository at this point in the history
  • Loading branch information
MamziB committed Feb 4, 2024
1 parent 7ea81c1 commit 39dec2b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/tl/mlx5/mcast/tl_mlx5_mcast_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,10 @@ ucc_status_t ucc_tl_mlx5_mcast_clean_ctx(ucc_tl_mlx5_mcast_coll_context_t *ctx)
ctx->channel = NULL;
}

// if (ctx->devname && !strcmp(ctx->params.ib_dev_name, "")) {
// // ucc_free(ctx->devname);
// ctx->devname = NULL;
//}

ucc_free(ctx);
if (ctx->devname && !strcmp(ctx->params.ib_dev_name, "")) {
ucc_free(ctx->devname);
ctx->devname = NULL;
}

return UCC_OK;
}

0 comments on commit 39dec2b

Please sign in to comment.