summaryrefslogtreecommitdiffstats
path: root/src/pwcache.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-10-30 15:00:44 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-11-02 11:25:10 -0400
commit80cf88bcb7d3a5a1dc27887d7280e50b1dd89929 (patch)
tree34055b2288659d13a733668ce145dfa905cf4782 /src/pwcache.c
parentd09b784e395554cb67ec91e70544a052fe60a276 (diff)
downloadbfs-80cf88bcb7d3a5a1dc27887d7280e50b1dd89929.tar.xz
alloc: Don't require the old size in varena_realloc()
Instead, just look up which arena contains the pointer.
Diffstat (limited to 'src/pwcache.c')
-rw-r--r--src/pwcache.c2
1 files changed, 1 insertions, 1 deletions
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;
}