always close socket automatically when connection fails
commit43af43ec7d5730dc4a6e31b36385a9c623b40241
authorrofl0r <retnyg@gmx.net>
Thu, 20 Dec 2018 22:16:32 +0000 (20 22:16 +0000)
committerrofl0r <retnyg@gmx.net>
Thu, 20 Dec 2018 22:16:32 +0000 (20 22:16 +0000)
tree1d6588afaf49cff409953821012a7509cc93ffc7
parent38001c19fbad13a1614adec1b8015b8e78f06cf3
always close socket automatically when connection fails

the user might not notice he's supposed to call rocksock_disconnect
after error, and get silent resource leaks.
rocksock.c