]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
libibverbs/device: destroy completion channel when closing device
authorSean Hefty <sean.hefty@intel.com>
Fri, 22 Jan 2010 22:00:34 +0000 (14:00 -0800)
committerSean Hefty <sean.hefty@intel.com>
Thu, 28 Jan 2010 23:38:05 +0000 (15:38 -0800)
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>
trunk/ulp/libibverbs/src/device.cpp

index a515a16f8b00f8a89bb9c398467793bb774a0db4..498d781f085e73f148a3169bb295c887edb530c2 100644 (file)
@@ -281,6 +281,7 @@ int ibv_close_device(struct ibv_context *context)
        context->cmd_if->Release();\r
        ibv_release();\r
        delete vcontext->port;\r
+       CompChannelCleanup(&vcontext->context.channel);\r
        delete vcontext;\r
        return 0;\r
 }\r