From: Changcheng Liu Date: Thu, 25 Apr 2019 05:00:45 +0000 (+0800) Subject: msg/async/rdma: free member hold memory when destructing obj X-Git-Tag: v15.1.0~2831^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7a35128e39a66da900dc77f53f39b5f704401e79;p=ceph.git msg/async/rdma: free member hold memory when destructing obj device_context_list hold the memory allocated through ibv_get_device_list. release the memory through calling ibv_free_device_list. Signed-off-by: Changcheng Liu --- diff --git a/src/msg/async/rdma/Infiniband.h b/src/msg/async/rdma/Infiniband.h index a43d9c5b757b..d904ad7d11b8 100644 --- a/src/msg/async/rdma/Infiniband.h +++ b/src/msg/async/rdma/Infiniband.h @@ -117,6 +117,7 @@ class DeviceList { } delete []devices; ibv_free_device_list(device_list); + rdma_free_devices(device_context_list); } Device* get_device(const char* device_name) {