libventi: fix cache teardown checks
This commit is contained in:
parent
e781b7b60a
commit
a0899df665
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ vtcachefree(VtCache *c)
|
||||||
|
|
||||||
cachecheck(c);
|
cachecheck(c);
|
||||||
for(i=0; i<c->nblock; i++) {
|
for(i=0; i<c->nblock; i++) {
|
||||||
assert(c->block[i].ref == 0);
|
assert(c->block[i].data == nil || c->block[i].ref == 0);
|
||||||
vtfree(c->block[i].data);
|
vtfree(c->block[i].data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue