summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/mlphy.c
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2001-02-08 21:53:05 +0000
committerasmodai <asmodai@FreeBSD.org>2001-02-08 21:53:05 +0000
commit1272fd4764bc2519d71f9dcfbf5704c3f77bbb9f (patch)
tree7a3131a033595d6b1757806f0d882b470426ce5a /sys/dev/mii/mlphy.c
parenta6bc5c2d11b59b9211c7a7f14e1fd7b44e508c13 (diff)
downloadFreeBSD-src-1272fd4764bc2519d71f9dcfbf5704c3f77bbb9f.zip
FreeBSD-src-1272fd4764bc2519d71f9dcfbf5704c3f77bbb9f.tar.gz
Fix memoryleaks with device_get_children().
Approved by: wpaul
Diffstat (limited to 'sys/dev/mii/mlphy.c')
-rw-r--r--sys/dev/mii/mlphy.c2
1 files changed, 2 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;
OpenPOWER on IntegriCloud