diff --git a/src/net.c b/src/net.c index 632ae0319..c82caff1b 100644 --- a/src/net.c +++ b/src/net.c @@ -145,7 +145,6 @@ create_socket(int domain, int proto, const char *local, const char *bind_dev, in if ((gerror = getaddrinfo(server, portstr, &hints, &server_res)) != 0) { if (local) freeaddrinfo(local_res); - freeaddrinfo(server_res); return -1; }