tlibventi: fix cache teardown checks - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit a0899df6655b50d96588da9d17efd4695ad4a918
DIR parent e781b7b60ab1ac8d0c6af11c584e2f48a26946c8
HTML 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(-)
---
DIR diff --git a/src/libventi/cache.c b/src/libventi/cache.c
t@@ -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);
}