From 65fd7ce1328cb53b107e7afc06893af3024551e0 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 14 Dec 2017 06:31:39 +1030 Subject: [PATCH] bitcoind: don't leak memory on every call to bitcoin-cli. Fixes: #412 Signed-off-by: Rusty Russell --- lightningd/bitcoind.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lightningd/bitcoind.c b/lightningd/bitcoind.c index 93b31f936..552584b9b 100644 --- a/lightningd/bitcoind.c +++ b/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); }