btcd icon indicating copy to clipboard operation
btcd copied to clipboard

Fix memory leak in connmanager

Open hxw opened this issue 4 years ago • 1 comments

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 avatar May 14 '20 02:05 hxw

@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.

jcvernaleo avatar Aug 03 '21 13:08 jcvernaleo