mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
This cannot possibly be right:
foo(int *nret)
{
for (i = 0; i < nret; i++) {
free(array[i], ....
Fix to do the logically correct thing.. (s/nret/*nret/)
This commit is contained in:
parent
584d978729
commit
6f39832c71
1 changed files with 2 additions and 2 deletions
|
|
@ -565,9 +565,9 @@ void
|
|||
cardbus_cis_free(device_t dev, struct cis_tupleinfo *buff, int* nret)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < nret; i++)
|
||||
for (i = 0; i < *nret; i++)
|
||||
free(buff[i].data, M_DEVBUF);
|
||||
if (nret > 0)
|
||||
if (*nret > 0)
|
||||
free(buff, M_DEVBUF);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue