Fix double ibv_close_device on RDMA init failure

This commit is contained in:
Vitaliy Filippov
2026-02-11 00:32:12 +03:00
parent facaa2cc6a
commit 9ec18f0aa1
-2
View File
@@ -388,8 +388,6 @@ msgr_rdma_context_t *msgr_rdma_context_t::create(ibv_device *dev, ibv_port_attr
return ctx;
cleanup:
if (context)
ibv_close_device(context);
delete ctx;
return NULL;
}