diff --git a/lightningd/opening_control.c b/lightningd/opening_control.c index 17bffd21d..5eda78580 100644 --- a/lightningd/opening_control.c +++ b/lightningd/opening_control.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -675,7 +676,8 @@ openchannel_hook_final(struct openchannel_hook_payload *payload STEALS) } else upfront_shutdown_script_wallet_index = NULL; - + /* In case peer goes away right now, mark openingd notleak() */ + notleak(openingd); subd_send_msg(openingd, take(towire_openingd_got_offer_reply(NULL, errmsg, our_upfront_shutdown_script,