commit a0899df6655b50d96588da9d17efd4695ad4a918 parent e781b7b60ab1ac8d0c6af11c584e2f48a26946c8 Author: Russ Cox <rsc@swtch.com> Date: Tue, 16 Jun 2009 11:04:40 -0400 libventi: fix cache teardown checks Diffstat:
M | src/libventi/cache.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libventi/cache.c b/src/libventi/cache.c @@ -106,7 +106,7 @@ vtcachefree(VtCache *c) cachecheck(c); 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); }