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/mtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mtab.c') diff --git a/src/mtab.c b/src/mtab.c index bf9fc53..7297421 100644 --- a/src/mtab.c +++ b/src/mtab.c @@ -101,7 +101,7 @@ static int bfs_mtab_add(struct bfs_mtab *mtab, const char *path, const char *typ shrink: --mtab->nmounts; free: - varena_free(&mtab->varena, mount, size); + varena_free(&mtab->varena, mount); return -1; } -- cgit v1.2.3