diff options
author | Russ Cox <rsc@swtch.com> | 2009-06-16 11:04:40 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-06-16 11:04:40 -0400 |
commit | a0899df6655b50d96588da9d17efd4695ad4a918 (patch) | |
tree | 42dfd8df0c2976ea5ea4581ac9e6a2273e36c387 /src/libventi | |
parent | e781b7b60ab1ac8d0c6af11c584e2f48a26946c8 (diff) | |
download | plan9port-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.c | 2 |
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); } |