Browse Source

bitcoind: don't leak memory on every call to bitcoin-cli.

Fixes: #412
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
65fd7ce132
  1. 1
      lightningd/bitcoind.c

1
lightningd/bitcoind.c

@ -154,6 +154,7 @@ static void bcli_finished(struct io_conn *conn, struct bitcoin_cli *bcli)
db_begin_transaction(bitcoind->ld->wallet->db);
bcli->process(bcli);
db_commit_transaction(bitcoind->ld->wallet->db);
tal_free(bcli);
next_bcli(bitcoind);
}

Loading…
Cancel
Save