diff options
author | asmodai <asmodai@FreeBSD.org> | 2001-02-08 21:53:05 +0000 |
---|---|---|
committer | asmodai <asmodai@FreeBSD.org> | 2001-02-08 21:53:05 +0000 |
commit | 1272fd4764bc2519d71f9dcfbf5704c3f77bbb9f (patch) | |
tree | 7a3131a033595d6b1757806f0d882b470426ce5a /sys/dev | |
parent | a6bc5c2d11b59b9211c7a7f14e1fd7b44e508c13 (diff) | |
download | FreeBSD-src-1272fd4764bc2519d71f9dcfbf5704c3f77bbb9f.zip FreeBSD-src-1272fd4764bc2519d71f9dcfbf5704c3f77bbb9f.tar.gz |
Fix memoryleaks with device_get_children().
Approved by: wpaul
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/mii/mlphy.c | 2 | ||||
-rw-r--r-- | sys/dev/mii/tlphy.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mii/mlphy.c b/sys/dev/mii/mlphy.c index b38cfc3..b8bdb37 100644 --- a/sys/dev/mii/mlphy.c +++ b/sys/dev/mii/mlphy.c @@ -218,6 +218,7 @@ mlphy_service(xsc, mii, cmd) break; } } + free(devlist, M_TEMP); switch (cmd) { case MII_POLLSTAT: @@ -431,6 +432,7 @@ static void mlphy_status(sc) break; } } + free(devlist, M_TEMP); if (other == NULL) return; diff --git a/sys/dev/mii/tlphy.c b/sys/dev/mii/tlphy.c index 59aae3d..3b6018c 100644 --- a/sys/dev/mii/tlphy.c +++ b/sys/dev/mii/tlphy.c @@ -178,6 +178,7 @@ static int tlphy_attach(dev) break; } } + free(devlist, M_TEMP); } mii->mii_instance++; |