Fix memoryleaks with device_get_children().

Approved by:	wpaul
This commit is contained in:
asmodai 2001-02-08 21:53:05 +00:00
parent a6bc5c2d11
commit 1272fd4764
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -178,6 +178,7 @@ static int tlphy_attach(dev)
break;
}
}
free(devlist, M_TEMP);
}
mii->mii_instance++;