Fix memory leak in zsocket
Merge pull request #478 from hurtonm/master

Fix memory leak in zsocket