mii: Fix memory leak in micphy.

PR:		270040
MFC after:	1 week

(cherry picked from commit 9a622787244c4cda76d1509b0eae168bf4fd1952)
This commit is contained in:
Jiahao LI 2024-01-08 16:39:56 +09:00 committed by Yoshihiro Takahashi
parent 4776a7f06e
commit fbc5e31c4f

View file

@ -276,6 +276,8 @@ micphy_attach(device_t dev)
else
ksz9021_load_values(sc, cfg->phynode);
mii_fdt_free_config(cfg);
return (0);
}