Fixed memory leak as described in issue 7/github by elfring

Commented in code.
https://github.com/dermesser/libsocket/issues/7