aboutsummaryrefslogtreecommitdiff
path: root/xs_socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_socket.h')
-rw-r--r--xs_socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xs_socket.h b/xs_socket.h
index 6e618ba..7bf5298 100644
--- a/xs_socket.h
+++ b/xs_socket.h
@@ -85,6 +85,8 @@ int xs_socket_server(const char *addr, const char *serv)
listen(rs, SOMAXCONN);
}
+ freeaddrinfo(res);
+
#else /* WITHOUT_GETADDRINFO */
struct sockaddr_in host;