]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/rdma: free member hold memory when destructing obj
authorChangcheng Liu <changcheng.liu@intel.com>
Thu, 25 Apr 2019 05:00:45 +0000 (13:00 +0800)
committerChangcheng Liu <changcheng.liu@intel.com>
Thu, 25 Apr 2019 06:08:00 +0000 (14:08 +0800)
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 <changcheng.liu@intel.com>
src/msg/async/rdma/Infiniband.h

index a43d9c5b757bacc5d7e4d97f573d432b77104d58..d904ad7d11b80e5992393cdace4ced21d383a037 100644 (file)
@@ -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) {