free type too if we can't add the child.
This commit is contained in:
parent
ad0c7dea8c
commit
81cb12571a
@ -248,8 +248,10 @@ nexus_probe(device_t dev)
|
||||
dinfo->ndi_bustag = &nexus_bustag;
|
||||
dinfo->ndi_dmatag = &nexus_dmatag;
|
||||
device_set_ivars(cdev, dinfo);
|
||||
} else
|
||||
} else {
|
||||
free(name, M_OFWPROP);
|
||||
free(type, M_OFWPROP);
|
||||
}
|
||||
|
||||
}
|
||||
device_set_desc(dev, "OpenFirmware Nexus device");
|
||||
|
Loading…
Reference in New Issue
Block a user