From 6008324cee83bc2c47531363e56fd40d5a68ffad Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Fri, 29 Jan 2010 05:07:01 +0000 Subject: [PATCH] libibverbs/device: destroy completion channel when closing device From: Sean Hefty ibv_close_device should destroy the completion channel when closing the device and freeing the memory. Signed-off-by: Sean Hefty git-svn-id: svn://openib.tc.cornell.edu/gen1@2689 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/ulp/libibverbs/src/device.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/ulp/libibverbs/src/device.cpp b/trunk/ulp/libibverbs/src/device.cpp index a515a16f..1b66d3ce 100644 --- a/trunk/ulp/libibverbs/src/device.cpp +++ b/trunk/ulp/libibverbs/src/device.cpp @@ -279,6 +279,7 @@ int ibv_close_device(struct ibv_context *context) } context->cmd_if->Release(); + CompChannelCleanup(&vcontext->context.channel); ibv_release(); delete vcontext->port; delete vcontext; -- 2.46.0