summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e23d790)
from a call to getaddrinfo. (Dave Dykstra)
<
20011219085021.A23107@lucent.com>
BUG FIXES:
* Fix test suite on Solaris. (Jos Backus)
BUG FIXES:
* Fix test suite on Solaris. (Jos Backus)
+
+ * Fix minor memory leak in socket code. (Dave Dykstra, Martin
+ Pool.)
- /* FIXME: Call freeaddrinfo() on all return paths! */
-
for (r = bres_all; r; r = r->ai_next) {
if (bind(s, r->ai_addr, r->ai_addrlen) == -1)
continue;
for (r = bres_all; r; r = r->ai_next) {
if (bind(s, r->ai_addr, r->ai_addrlen) == -1)
continue;
+ freeaddrinfo(bres_all);
return s;
}
/* no error message; there might be some problem that allows
* creation of the socket but not binding, perhaps if the
* machine has no ipv6 address of this name. */
return s;
}
/* no error message; there might be some problem that allows
* creation of the socket but not binding, perhaps if the
* machine has no ipv6 address of this name. */
+ freeaddrinfo(bres_all);
- /* FIXME: Call freeaddrinfo? */