core-lightning/openingd
Rusty Russell 88adbbd20e openingd: clean up state properly when a hook says to reject opening.
This was just a minor leak, found by CI for
test_openchannel_hook_chaining.  We didn't call negotiation_aborted
which frees various fields: negotiation_failed() does that for us.

```
 MEMLEAK: 0x55b0f2d5f3c8
   label=common/channel_type.c:19:struct channel_type
   backtrace:
     ccan/ccan/tal/tal.c:442 (tal_alloc_)
     common/channel_type.c:19 (channel_type_none)
     common/channel_type.c:27 (channel_type_static_remotekey)
     common/channel_type.c:136 (channel_type_accept)
     openingd/openingd.c:844 (fundee_channel)
     openingd/openingd.c:1240 (handle_peer_in)
     openingd/openingd.c:1510 (main)
   parents:
     openingd/openingd.c:1414:struct state
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-09-13 15:53:23 +02:00
..
common.c Makefile: update bolt version to include option_anchors_zero_fee_htlc_tx. 2021-09-09 12:04:48 +09:30
common.h df: use dev-env flagged upfront shutdown script 2021-01-10 13:44:04 +01:00
dualopend_wire.csv dualopend: remove runtime memleak in favor of at-termination. 2021-08-05 12:53:38 -05:00
dualopend_wiregen.c lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
dualopend_wiregen.h lightningd: use channel_type, pass to-and-from channeld. 2021-09-13 15:53:23 +02:00
dualopend.c common/initial_channel: use channel_type instead of individual option bools. 2021-09-13 15:53:23 +02:00
Makefile common/channel_type: wrapper for generated 'struct channel_type'. 2021-09-13 15:53:23 +02:00
openingd_wire.csv openingd: tell lightningd what channel type we negotiated. 2021-09-13 15:53:23 +02:00
openingd_wiregen.c openingd: tell lightningd what channel type we negotiated. 2021-09-13 15:53:23 +02:00
openingd_wiregen.h openingd: tell lightningd what channel type we negotiated. 2021-09-13 15:53:23 +02:00
openingd.c openingd: clean up state properly when a hook says to reject opening. 2021-09-13 15:53:23 +02:00