From 97ebc2095b4b2250b1bd5da3616fb12b8c49992b Mon Sep 17 00:00:00 2001 From: Greg Haerr Date: Mon, 16 Dec 2024 17:55:19 -0700 Subject: [PATCH] Use sysctl malloc.debug for default malloc --- libc/malloc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/malloc/malloc.c b/libc/malloc/malloc.c index 6d79938ae..6a07acfe1 100644 --- a/libc/malloc/malloc.c +++ b/libc/malloc/malloc.c @@ -196,7 +196,7 @@ malloc(size_t size) #if VERBOSE == 1 if (chunk_list == 0) - sysctl(CTL_GET, "kern.debug", &__debug_level); + sysctl(CTL_GET, "malloc.debug", &__debug_level); #endif errno = 0;