It's not leaking memory, it's leaking the file descriptors from the sockets.
—Reply to this email directly or view it on GitHub.