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/pwcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pwcache.c') diff --git a/src/pwcache.c b/src/pwcache.c index fa19dad..3f63633 100644 --- a/src/pwcache.c +++ b/src/pwcache.c @@ -52,7 +52,7 @@ static void *bfs_getent(bfs_getent_fn *fn, const void *key, struct trie_leaf *le } } - varena_free(varena, ptr, bufsize); + varena_free(varena, ptr); return NULL; } -- cgit v1.2.3