From 8f38bf7f9e402edc14df3fe89dc0b46b1b1c3ee9 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 7 Dec 2019 00:06:05 +0100 Subject: Fix a memory leak caused by repeatedly allocating the libbacktrace state at every printed backtrace Signed-off-by: Haru --- src/common/core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/core.c') diff --git a/src/common/core.c b/src/common/core.c index 54358b85c..5be90a411 100644 --- a/src/common/core.c +++ b/src/common/core.c @@ -489,6 +489,7 @@ int main(int argc, char **argv) iMalloc->init();// needed for Show* in display_title() [FlavioJS] showmsg->init(); + nullpo->init(); cmdline->init(); @@ -552,6 +553,7 @@ int main(int argc, char **argv) cmdline->final(); //sysinfo->final(); Called by iMalloc->final() + nullpo->final(); iMalloc->final(); showmsg->final(); // Should be after iMalloc->final() -- cgit v1.2.3-70-g09d2