mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
bitcoind: don't leak memory on every call to bitcoin-cli.
Fixes: #412 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
b00525b8c8
commit
65fd7ce132
@ -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…
Reference in New Issue
Block a user