Fix leak on error in bind_to_unix

Spotted by cppcheck.