bitcoind: fix spurious memleak reports.

Turn req_running into a pointer to the current bcli structure, which means
the leak detection can find it.

Also suppress leaks in the case where we're only attached to a timer

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-06-15 10:42:14 +09:30
committed by Christian Decker
parent 5c19c55841
commit a80241ec7a
2 changed files with 8 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ struct bitcoind {
struct lightningd *ld;
/* Are we currently running a bitcoind request (it's ratelimited) */
bool req_running;
struct bitcoin_cli *current;
/* Pending requests. */
struct list_head pending;