Fix a memory leak. We need to free the port array, which is allocated separately from the device structure.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2386
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
WdfIoQueuePurgeSynchronously(pDevice->pPorts[i].Queue);\r
WdfObjectDelete(pDevice->pPorts[i].Queue);\r
}\r
WdfIoQueuePurgeSynchronously(pDevice->pPorts[i].Queue);\r
WdfObjectDelete(pDevice->pPorts[i].Queue);\r
}\r
+ if (pDevice->pPorts != NULL) {\r
+ ExFreePoolWithTag(pDevice->pPorts, 'cpvw');\r
+ }\r
}\r
\r
void WvDeviceFree(WV_DEVICE *pDevice)\r
}\r
\r
void WvDeviceFree(WV_DEVICE *pDevice)\r