diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-10-30 15:00:44 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-11-02 11:25:10 -0400 |
commit | 80cf88bcb7d3a5a1dc27887d7280e50b1dd89929 (patch) | |
tree | 34055b2288659d13a733668ce145dfa905cf4782 /src/mtab.c | |
parent | d09b784e395554cb67ec91e70544a052fe60a276 (diff) | |
download | bfs-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/mtab.c')
-rw-r--r-- | src/mtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |