]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/rdma: free memory when Infiniband obj is freed
authorChangcheng Liu <changcheng.liu@intel.com>
Thu, 25 Apr 2019 05:08:11 +0000 (13:08 +0800)
committerChangcheng Liu <changcheng.liu@intel.com>
Thu, 25 Apr 2019 06:08:00 +0000 (14:08 +0800)
device_list is allocated in Infiniband::init.
When Infiniband obj is destructed, free the allocated
space in case of memory leak.

Signed-off-by: Changcheng Liu <changcheng.liu@intel.com>
src/msg/async/rdma/Infiniband.cc

index ddbf5509f28f068bafbde9cfc478519323834158..f14b4865a803875d5edbacb1348fbd43751d14f8 100644 (file)
@@ -964,6 +964,7 @@ Infiniband::~Infiniband()
     ibv_destroy_srq(srq);
   delete memory_manager;
   delete pd;
+  delete device_list;
 }
 
 /**