btcd
btcd copied to clipboard
Fix memory leak in connmanager
In the case of an error the connection struct is never deleted from the pending hash map.
In some testing I observed leaks of 3MB in an hour
The problem stem from the fact that the handleFailedConn does not reuse the connect but allocate a new one
@hxw Sorry I missed this one. Looks good. Is there any chance you could rebase this so the CI can run properly and squash to one commit? I think that is all it will need to be good to go.