mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 17:14:28 +01:00
onchaind: fix minor leaks.
Not actually leaks, but they do live longer than they need. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -62,7 +62,7 @@ static struct bitcoin_tx *htlc_tx(const tal_t *ctx,
|
||||
|
||||
wscript = bitcoin_wscript_htlc_tx(tx, to_self_delay, revocation_pubkey,
|
||||
local_delayedkey);
|
||||
bitcoin_tx_add_output(tx, scriptpubkey_p2wsh(tx, wscript),
|
||||
bitcoin_tx_add_output(tx, scriptpubkey_p2wsh(tmpctx, wscript),
|
||||
wscript, amount);
|
||||
|
||||
bitcoin_tx_finalize(tx);
|
||||
|
||||
Reference in New Issue
Block a user