28 lines
571 B
Diff
28 lines
571 B
Diff
--- socket.c
|
|
+++ socket.c
|
|
@@ -270,7 +270,6 @@
|
|
res = res->ai_next;
|
|
}
|
|
|
|
- freeaddrinfo (resbase);
|
|
|
|
if (res == NULL)
|
|
{
|
|
@@ -279,6 +278,7 @@
|
|
host->name,
|
|
inet_ntop2 (sin6->sin6_family, &sin6->sin6_addr));
|
|
strncpy(host->name, paranoid, sizeof(host->name));
|
|
+ freeaddrinfo (resbase);
|
|
return;
|
|
}
|
|
|
|
@@ -289,7 +289,7 @@
|
|
host->name, res->ai_canonname,
|
|
inet_ntop2 (sin6->sin6_family, &sin6->sin6_addr));
|
|
}
|
|
-
|
|
+ freeaddrinfo (resbase);
|
|
return;
|
|
}
|
|
#else /* INET6 */
|