summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-06-16 19:18:06 +0000
committerjmg <jmg@FreeBSD.org>2003-06-16 19:18:06 +0000
commit17751a54cb206751c00bd97187f23c8aba9dc4af (patch)
treed1aa8e5bf477f1092412857ab1fa6e64ed0c4312 /sys/sparc64
parent3a91d555c6b69108c6c35d7e7f40ca7fdc513070 (diff)
downloadFreeBSD-src-17751a54cb206751c00bd97187f23c8aba9dc4af.zip
FreeBSD-src-17751a54cb206751c00bd97187f23c8aba9dc4af.tar.gz
free type too if we can't add the child.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/nexus.c4
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");
OpenPOWER on IntegriCloud