summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
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