diff --git a/lib/chibi/net.scm b/lib/chibi/net.scm index 4399c92d..7d92d1ef 100644 --- a/lib/chibi/net.scm +++ b/lib/chibi/net.scm @@ -90,6 +90,7 @@ ((not sock) (error "couldn't create socket for: " addrinfo)) ((not (set-socket-option! sock level/socket socket-opt/reuseaddr 1)) + (close-file-descriptor sock) (error "couldn't set the socket to be reusable" addrinfo)) ((not (bind sock (address-info-address addrinfo)