diff options
author | Christos Margiolis <christos@FreeBSD.org> | 2023-04-10 15:31:46 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-04-10 16:14:12 +0000 |
commit | 38594ff9c0c9568b5082ba3273103904a6afd38e (patch) | |
tree | 4a5472dadebb5ef7ff4aa595a71ae28ba2daa56f | |
parent | 0388a0887a8d0e6f21b130bf7d9f6b455958c7eb (diff) | |
download | src-38594ff9c0c9568b5082ba3273103904a6afd38e.tar.gz src-38594ff9c0c9568b5082ba3273103904a6afd38e.zip |
ofw: fix memory leak in ofwbus_attach()
PR: 269509
Reported by: Jaroslaw Pelczar <jarek@jpelczar.com>
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D38903
-rw-r--r-- | sys/dev/ofw/ofwbus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ofw/ofwbus.c b/sys/dev/ofw/ofwbus.c index 80d013cd06ee..b35a3ce968e6 100644 --- a/sys/dev/ofw/ofwbus.c +++ b/sys/dev/ofw/ofwbus.c @@ -130,6 +130,7 @@ ofwbus_attach(device_t dev) if (ofw_bus_gen_setup_devinfo(&obd, node) != 0) continue; simplebus_add_device(dev, node, 0, NULL, -1, NULL); + ofw_bus_gen_destroy_devinfo(&obd); } return (bus_generic_attach(dev)); } |