git: 9a622787244c - main - mii: Fix memory leak in micphy.

From: Yoshihiro Takahashi <nyan_at_FreeBSD.org>
Date: Mon, 08 Jan 2024 07:42:28 UTC
The branch main has been updated by nyan:

URL: https://cgit.FreeBSD.org/src/commit/?id=9a622787244c4cda76d1509b0eae168bf4fd1952

commit 9a622787244c4cda76d1509b0eae168bf4fd1952
Author:     Jiahao LI <jiahali@blackberry.com>
AuthorDate: 2024-01-08 07:39:56 +0000
Commit:     Yoshihiro Takahashi <nyan@FreeBSD.org>
CommitDate: 2024-01-08 07:39:56 +0000

    mii: Fix memory leak in micphy.
    
    PR:             270040
    MFC after:      1 week
---
 sys/dev/mii/micphy.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/mii/micphy.c b/sys/dev/mii/micphy.c
index fa212bf43655..4783398886f5 100644
--- a/sys/dev/mii/micphy.c
+++ b/sys/dev/mii/micphy.c
@@ -276,6 +276,8 @@ micphy_attach(device_t dev)
 	else
 		ksz9021_load_values(sc, cfg->phynode);
 
+	mii_fdt_free_config(cfg);
+
 	return (0);
 }