From 80cf88bcb7d3a5a1dc27887d7280e50b1dd89929 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 30 Oct 2024 15:00:44 -0400 Subject: alloc: Don't require the old size in varena_realloc() Instead, just look up which arena contains the pointer. --- src/bftw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bftw.c') diff --git a/src/bftw.c b/src/bftw.c index 61193d5..c99fb8d 100644 --- a/src/bftw.c +++ b/src/bftw.c @@ -796,7 +796,7 @@ static void bftw_file_free(struct bftw_cache *cache, struct bftw_file *file) { bftw_stat_recycle(cache, file); - varena_free(&cache->files, file, file->namelen + 1); + varena_free(&cache->files, file); } /** -- cgit v1.2.3