mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 06:55:13 +01:00
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:
parent
6176912683
commit
4502340dac
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue