mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix memoryleaks with device_get_children().
Approved by: wpaul
This commit is contained in:
parent
887e2e5d65
commit
4b91c22b12
2 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue