mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add missing increment of allocation counter.
This commit is contained in:
parent
5a890e22bf
commit
b10c4e187f
1 changed files with 2 additions and 0 deletions
|
|
@ -371,6 +371,7 @@ _zget(vm_zone_t z)
|
|||
(char *) item += z->zsize;
|
||||
}
|
||||
z->zfreecnt += nitems;
|
||||
z->znalloc++;
|
||||
} else if (z->zfreecnt > 0) {
|
||||
item = z->zitems;
|
||||
z->zitems = ((void **) item)[0];
|
||||
|
|
@ -380,6 +381,7 @@ _zget(vm_zone_t z)
|
|||
((void **) item)[1] = 0;
|
||||
#endif
|
||||
z->zfreecnt--;
|
||||
z->znalloc++;
|
||||
} else {
|
||||
item = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue