aboutsummaryrefslogtreecommitdiffstats
path: root/init/log.c
diff options
context:
space:
mode:
authorturret <turret@duck.com>2023-12-18 14:10:48 -0600
committerturret <turret@duck.com>2023-12-18 14:10:48 -0600
commitc2dc21b3e454f7e27d9456fddb4d26e0bfed39fa (patch)
treefa34e52c998ce0f026a08a7b7684565a98efc2f5 /init/log.c
parent42a5bb2806ff22a29b7d8d2d85c63d69cee24bba (diff)
downloaddiscord-bot-skeleton-c2dc21b3e454f7e27d9456fddb4d26e0bfed39fa.tar.gz
discord-bot-skeleton-c2dc21b3e454f7e27d9456fddb4d26e0bfed39fa.tar.bz2
discord-bot-skeleton-c2dc21b3e454f7e27d9456fddb4d26e0bfed39fa.zip
panic: fix memory leak
Diffstat (limited to 'init/log.c')
-rw-r--r--init/log.c2
1 files changed, 2 insertions, 0 deletions
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)