winverbs: free port array
[mirror/winof/.git] / core / winverbs / kernel / wv_device.c
index 5cc20bd..846f0b0 100644 (file)
@@ -367,6 +367,9 @@ static void WvDeviceFreePorts(WV_DEVICE *pDevice)
                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