From: Sean Hefty Date: Fri, 22 Jan 2010 22:00:34 +0000 (-0800) Subject: libibverbs/device: destroy completion channel when closing device X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f628018dd0f92826916facb611ad1558b463786d;p=~shefty%2Frdma-win.git libibverbs/device: destroy completion channel when closing device ibv_close_device should destroy the completion channel when closing the device and freeing the memory. Signed-off-by: Sean Hefty --- diff --git a/trunk/ulp/libibverbs/src/device.cpp b/trunk/ulp/libibverbs/src/device.cpp index a515a16f..498d781f 100644 --- a/trunk/ulp/libibverbs/src/device.cpp +++ b/trunk/ulp/libibverbs/src/device.cpp @@ -281,6 +281,7 @@ int ibv_close_device(struct ibv_context *context) context->cmd_if->Release(); ibv_release(); delete vcontext->port; + CompChannelCleanup(&vcontext->context.channel); delete vcontext; return 0; }