Fix leak on error in bind_to_unix

Spotted by cppcheck.
Merge pull request #791 from xrmx/cppcheck812

Fix leak on error in bind_to_unix