[bus] Make callers of bus__add_child responsible...
[people/sha0/winvblock.git] / src / winvblock / bus / bus.c
index c4f2dfe..cee342f 100644 (file)
@@ -473,8 +473,6 @@ static PDEVICE_OBJECT STDCALL bus__create_pdo_(IN device__type_ptr dev) {
     IoDeleteDevice(pdo);
     err_pdo:
 
-    /* Destroy the caller's device! */
-    device__free(dev);
     return NULL;
   }