From 7a35128e39a66da900dc77f53f39b5f704401e79 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Thu, 25 Apr 2019 13:00:45 +0800 Subject: [PATCH] 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 --- src/msg/async/rdma/Infiniband.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msg/async/rdma/Infiniband.h b/src/msg/async/rdma/Infiniband.h index a43d9c5b757..d904ad7d11b 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) { -- 2.39.5