free type too if we can't add the child.

This commit is contained in:
John-Mark Gurney 2003-06-16 19:18:06 +00:00
parent ad0c7dea8c
commit 81cb12571a

View File

@ -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");