From 4502340daca76093634720ea23252801bbe73afc Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Fri, 27 Jan 2023 13:42:53 -0600 Subject: [PATCH] lightningd: flag false-positive memleak in lightningd The leak-detector can't find unconnected_htlcs_in on the stack and incorrectly flags this as a leak. However, it is appropriately tal allocated and freed. Changelog-None --- lightningd/lightningd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/lightningd.c b/lightningd/lightningd.c index 2a34f572e..361b245a4 100644 --- a/lightningd/lightningd.c +++ b/lightningd/lightningd.c @@ -1115,7 +1115,7 @@ int main(int argc, char *argv[]) /*~ Pull peers, channels and HTLCs from db. Needs to happen after the * topology is initialized since some decisions rely on being able to * know the blockheight. */ - unconnected_htlcs_in = load_channels_from_wallet(ld); + unconnected_htlcs_in = notleak(load_channels_from_wallet(ld)); db_commit_transaction(ld->wallet->db); /*~ The gossip daemon looks after the routing gossip;