diff options
author | jmg <jmg@FreeBSD.org> | 2003-06-16 19:18:06 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2003-06-16 19:18:06 +0000 |
commit | 17751a54cb206751c00bd97187f23c8aba9dc4af (patch) | |
tree | d1aa8e5bf477f1092412857ab1fa6e64ed0c4312 /sys | |
parent | 3a91d555c6b69108c6c35d7e7f40ca7fdc513070 (diff) | |
download | FreeBSD-src-17751a54cb206751c00bd97187f23c8aba9dc4af.zip FreeBSD-src-17751a54cb206751c00bd97187f23c8aba9dc4af.tar.gz |
free type too if we can't add the child.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/sparc64/nexus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/nexus.c b/sys/sparc64/sparc64/nexus.c index cf70ced..2a7c348 100644 --- a/sys/sparc64/sparc64/nexus.c +++ b/sys/sparc64/sparc64/nexus.c @@ -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"); |