Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2024 10:26:39 GMT
From:      Yoshihiro Takahashi <nyan@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: fbc5e31c4f1e - stable/14 - mii: Fix memory leak in micphy.
Message-ID:  <202401151026.40FAQdIt003204@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by nyan:

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

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

    mii: Fix memory leak in micphy.
    
    PR:             270040
    MFC after:      1 week
    
    (cherry picked from commit 9a622787244c4cda76d1509b0eae168bf4fd1952)
---
 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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401151026.40FAQdIt003204>