libibverbs: release WVProvider reference from ibvw_acquire_windata
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 18 Feb 2010 21:50:12 +0000 (21:50 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 18 Feb 2010 21:50:12 +0000 (21:50 +0000)
ibvw_release_windata should release the WVProvider reference taken
in ibvw_acquire_windata.

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

ulp/libibverbs/src/device.cpp

index 1b66d3c..e404be7 100644 (file)
@@ -121,6 +121,7 @@ int ibvw_get_windata(struct ibvw_windata *windata, int version)
 __declspec(dllexport)\r
 void ibvw_release_windata(struct ibvw_windata *windata, int version)\r
 {\r
+       prov->Release();\r
        ibv_release();\r
 }\r
 \r