Date: Fri, 17 Mar 2023 20:05:48 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270270] mii: memory leak when mii_attach() fails Message-ID: <bug-270270-227-exVkF2qCon@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-270270-227@https.bugs.freebsd.org/bugzilla/> References: <bug-270270-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270270 --- Comment #3 from Jiahao LI <jiahali@blackberry.com> --- (In reply to Mina Gali=C4=87 from comment #2) Thanks for the suggestions. I agree that it would be better to clean up the softc in device_delete_chil= d(). Since changing the device_delete_child() would have an impact on many devic= es and the softc will be allocated if the "miibus" input parameter of mii_atta= ch() is null, I only change it in the mii_attach() for minimal impact of other components. It would be better that Freebsd can re-investigate the memory allocation issues using device_*() APIs. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270270-227-exVkF2qCon>