mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-10 16:44:19 +01:00
spender/openchannel.c: don't leave psbt parts owned by NULL.
They get grafted into clone, so have them parented there. Otherwise we get a small leak every time we RBF. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
665748236c
commit
f246896348
@@ -90,8 +90,9 @@ static bool update_parent_psbt(const tal_t *ctx,
|
||||
if (wally_psbt_clone_alloc(new_node_psbt, 0, &new_node_copy)
|
||||
!= WALLY_OK)
|
||||
abort();
|
||||
/* copy is cleaned up below */
|
||||
tal_wally_end(NULL);
|
||||
/* copy is cleaned up below, but we need parts we steal from it
|
||||
* owned by the clone. */
|
||||
tal_wally_end(clone);
|
||||
|
||||
changes = psbt_get_changeset(NULL, old_node_psbt,
|
||||
new_node_copy);
|
||||
|
||||
Reference in New Issue
Block a user