libventi: fix cache teardown checks

This commit is contained in:
Russ Cox 2009-06-16 11:04:40 -04:00
parent e781b7b60a
commit a0899df665

View file

@ -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);
} }