diff --git a/net.c b/net.c index 024f645..d332db1 100644 --- a/net.c +++ b/net.c @@ -357,6 +357,7 @@ addrretry: n = 1; if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char*) &n, sizeof(n)) < 0) { + freeaddrinfo(bservinfo); goto error; } }