ref: 9878fd219b0b214f6347ded88bc8936d62233227
parent: 853d03830e55dceaf28e814755e48494a2ee4cd1
author: Ori Bernstein <[email protected]>
date: Sun May 14 11:01:58 EDT 2023
tree: scans are no longer heap allocated
--- a/tree.c
+++ b/tree.c
@@ -1397,10 +1397,8 @@
if(s->done)
return nil;
- if((s->path = calloc(t->ht, sizeof(Scanp))) == nil){
- free(s);
+ if((s->path = calloc(t->ht, sizeof(Scanp))) == nil)
return Enomem;
- }
p = s->path;
if((b = getblk(t->bp, 0)) == nil)
return Eio;