diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2021-07-23 18:04:29 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2021-07-23 18:04:29 +0000 |
commit | 4f35cb2537ffda2b59f4872573338d293673f7b8 (patch) | |
tree | 59741ad60e4548e8f1b8c8da30b2e17b0fb3c7d2 | |
parent | 2c559f1c4d8444ba0737dd447a269efdd085e0fc (diff) |
Make MALLOC_STATS compile again; noted by Omar Polo and Joe Nelson
-rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index fb1cc02b859..618554d293e 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.270 2021/04/09 06:05:21 otto Exp $ */ +/* $OpenBSD: malloc.c,v 1.271 2021/07/23 18:04:28 otto Exp $ */ /* * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net> * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> @@ -1610,7 +1610,7 @@ orealloc(struct dir_info **argpool, void *p, size_t newsz, void *f) } if (munmap((char *)r->p + rnewsz, roldsz - rnewsz)) wrterror(pool, "munmap %p", (char *)r->p + rnewsz); - STATS_SUB(d->malloc_used, roldsz - rnewsz); + STATS_SUB(pool->malloc_used, roldsz - rnewsz); r->size = gnewsz; if (MALLOC_MOVE_COND(gnewsz)) { void *pp = MALLOC_MOVE(r->p, gnewsz); |