aboutsummaryrefslogtreecommitdiff
path: root/src/libventi
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-06-16 11:04:40 -0400
committerRuss Cox <rsc@swtch.com>2009-06-16 11:04:40 -0400
commita0899df6655b50d96588da9d17efd4695ad4a918 (patch)
tree42dfd8df0c2976ea5ea4581ac9e6a2273e36c387 /src/libventi
parente781b7b60ab1ac8d0c6af11c584e2f48a26946c8 (diff)
downloadplan9port-a0899df6655b50d96588da9d17efd4695ad4a918.tar.gz
plan9port-a0899df6655b50d96588da9d17efd4695ad4a918.tar.bz2
plan9port-a0899df6655b50d96588da9d17efd4695ad4a918.zip
libventi: fix cache teardown checks
Diffstat (limited to 'src/libventi')
-rw-r--r--src/libventi/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libventi/cache.c b/src/libventi/cache.c
index 030efb0a..da0d103e 100644
--- 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);
}