mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
lightningd: free peer->uc when openingd fails.
This avoids reuse which can cause confusion; the long-term fix is to rewrite this to use real channels like dualfunding does. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
bcf3cef96c
commit
9c978f2c63
1 changed files with 2 additions and 0 deletions
|
@ -574,6 +574,8 @@ static void openingd_failed(struct subd *openingd, const u8 *msg,
|
|||
|
||||
/* Noop if we're not funder. */
|
||||
opening_funder_failed_cancel_commands(uc, desc);
|
||||
/* Detaches from ->peer */
|
||||
tal_free(uc);
|
||||
}
|
||||
|
||||
struct openchannel_hook_payload {
|
||||
|
|
Loading…
Add table
Reference in a new issue