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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70763
@ -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 New Issue
Block a user