Fix memoryleaks with device_get_children().
Approved by: wpaul
This commit is contained in:
parent
a6bc5c2d11
commit
1272fd4764
@ -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;
|
||||
|
@ -178,6 +178,7 @@ static int tlphy_attach(dev)
|
||||
break;
|
||||
}
|
||||
}
|
||||
free(devlist, M_TEMP);
|
||||
}
|
||||
|
||||
mii->mii_instance++;
|
||||
|
Loading…
Reference in New Issue
Block a user