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
This commit is contained in:
Alex Myers 2023-01-27 13:42:53 -06:00 committed by Vincenzo Palazzo
parent 6176912683
commit 4502340dac

View file

@ -1115,7 +1115,7 @@ int main(int argc, char *argv[])
/*~ Pull peers, channels and HTLCs from db. Needs to happen after the /*~ Pull peers, channels and HTLCs from db. Needs to happen after the
* topology is initialized since some decisions rely on being able to * topology is initialized since some decisions rely on being able to
* know the blockheight. */ * 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); db_commit_transaction(ld->wallet->db);
/*~ The gossip daemon looks after the routing gossip; /*~ The gossip daemon looks after the routing gossip;