ref: ff676ebbf4b493e3dd9d134e24816629ae3cd1c0
parent: 43d8da8b53e5f773e780928b3cf5ae2ce252d908
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Apr 29 20:18:46 EDT 2023
check: don't leak block
--- a/check.c
+++ b/check.c
@@ -217,8 +217,10 @@
if((b = getroot(t, &height)) == nil){
fprint(fd, "unable to get root %B\n", t->bp);
ok = 0;
- if((b = getblk(t->bp, GBnochk)) != nil)
+ if((b = getblk(t->bp, GBnochk)) != nil){
showblk(fd, b, "corrupt", 0);
+ dropblk(b);
+ }
continue;
}
if(badtree(fd, b, height-1, nil, 0))