libibverbs/device: destroy completion channel when closing device
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Jan 2010 05:07:01 +0000 (05:07 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Jan 2010 05:07:01 +0000 (05:07 +0000)
From: Sean Hefty <sean.hefty@intel.com>

ibv_close_device should destroy the completion channel
when closing the device and freeing the memory.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2689 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/libibverbs/src/device.cpp

index a515a16..1b66d3c 100644 (file)
@@ -279,6 +279,7 @@ int ibv_close_device(struct ibv_context *context)
        }\r
 \r
        context->cmd_if->Release();\r
+       CompChannelCleanup(&vcontext->context.channel);\r
        ibv_release();\r
        delete vcontext->port;\r
        delete vcontext;\r