mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 08:04:26 +01:00
lightningd: fix backtraces in memleak detection.
We were using a *different* backtrace_state var, which was always NULL. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
c02ab124aa
commit
12a39b8a79
@@ -15,8 +15,9 @@
|
||||
#include <unistd.h>
|
||||
#include <wally_core.h>
|
||||
|
||||
struct backtrace_state *backtrace_state;
|
||||
|
||||
#if BACKTRACE_SUPPORTED
|
||||
static struct backtrace_state *backtrace_state;
|
||||
static void (*bt_print)(const char *fmt, ...) PRINTF_FMT(1,2);
|
||||
static void (*bt_exit)(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user