aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}