Fix memory leak in socks connecter
Merge pull request #1101 from hurtonm/master

Fix memory leak in socks connecter