Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
topology: fix memleak in listchannels
local_connected allocates a struct node_map off of the struct listchannels_opts but fails to ever release the internal table, so those table allocations hang around forever. Add node_map_clear as a destructor for the struct node_map to ensure that the internal table is freed when the enclosing struct is freed. Changelog-Fixed: topology: Fixed memleak in `listchannels` Signed-off-by: Matt Whitlock <c-lightning@mattwhitlock.name>
- Loading branch information