mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +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:
committed by
Vincenzo Palazzo
parent
6176912683
commit
4502340dac
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user