File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1360,6 +1360,21 @@ CreateUsbChildDeviceObject(
1360
1360
if (UsbChildExtension -> FullConfigDesc )
1361
1361
ExFreePool (UsbChildExtension -> FullConfigDesc );
1362
1362
1363
+ //
1364
+ // Free ID buffers if they were allocated in CreateDeviceIds()
1365
+ //
1366
+ if (UsbChildExtension -> usCompatibleIds .Buffer )
1367
+ ExFreePool (UsbChildExtension -> usCompatibleIds .Buffer );
1368
+
1369
+ if (UsbChildExtension -> usDeviceId .Buffer )
1370
+ ExFreePool (UsbChildExtension -> usDeviceId .Buffer );
1371
+
1372
+ if (UsbChildExtension -> usHardwareIds .Buffer )
1373
+ ExFreePool (UsbChildExtension -> usHardwareIds .Buffer );
1374
+
1375
+ if (UsbChildExtension -> usInstanceId .Buffer )
1376
+ ExFreePool (UsbChildExtension -> usInstanceId .Buffer );
1377
+
1363
1378
//
1364
1379
// Delete the device object
1365
1380
//
You can’t perform that action at this time.
0 commit comments