mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
memleak,df: patchup memleak code for v2 channels
Takes 'unsaved' channels into account for memleak cleanups, instead of solely relying on `uncommitted_channels`
This commit is contained in:
@@ -2446,7 +2446,11 @@ static void peer_memleak_req_next(struct command *cmd, struct channel *prev)
|
||||
if (prev != NULL)
|
||||
continue;
|
||||
|
||||
/* Note: closingd does its own checking automatically */
|
||||
/* Note: closingd and dualopend do their own
|
||||
* checking automatically */
|
||||
if (channel_unsaved(c))
|
||||
continue;
|
||||
|
||||
if (streq(c->owner->name, "channeld")) {
|
||||
subd_req(c, c->owner,
|
||||
take(towire_channeld_dev_memleak(NULL)),
|
||||
|
||||
Reference in New Issue
Block a user