Skip to content

Commit

Permalink
openingd: make sure we take utxos on success.
Browse files Browse the repository at this point in the history
Otherwise recent additional checks in tal() complain that we're freeing a
take() pointer.  In this case, we're exiting so it's harmless, but it's
still a latent bug.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and cdecker committed Dec 29, 2018
1 parent 7314c71 commit b155dbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openingd/openingd.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,9 @@ static u8 *funder_channel(struct state *state,

peer_billboard(false, "Funding channel: opening negotiation succeeded");

if (taken(utxos))
tal_free(utxos);

/* BOLT #2:
*
* The recipient:
Expand Down

0 comments on commit b155dbb

Please sign in to comment.