From c2dc21b3e454f7e27d9456fddb4d26e0bfed39fa Mon Sep 17 00:00:00 2001 From: turret Date: Mon, 18 Dec 2023 14:10:48 -0600 Subject: panic: fix memory leak --- init/log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/log.c b/init/log.c index 8ed5d1c..c7d69f6 100644 --- a/init/log.c +++ b/init/log.c @@ -159,6 +159,8 @@ void _panic(const char *fileorigin, const int lineorigin, const char *fmt, ...) console_lock = 0; free(_fmt); + free(backtrace_symbolnames); + free(backtrace_addresses); va_end(ap); if(mode == PANICMODE_DEBUGONLY) -- cgit v1.2.3