apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".

Home Page:https://brpc.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

possible resource leak of ibv_comp_channel in rdma

hydrozhao opened this issue · comments

我在阅读rdma部分代码时,在 GlobalRdmaInitializeOrDieImpl 函数中看到一行比较奇怪的代码。它在全局初始化的过程中调用了 IbvCreateCompChannel 来创建应该由 RdmaEndpoint 管理的资源,并且没有对创建的 ibv_comp_channel 进行销毁。

请问这行代码符合预期吗?如果符合预期,请问这一行的作用是什么呢?

代码位置

IbvCreateCompChannel(g_context);