diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2016-05-29 19:46:34 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2016-05-29 19:46:34 +0000 |
| commit | 5656b5057ebe86bf0bfdffca3281de2cb5b224c4 (patch) | |
| tree | 15d4dd2dc321ed1ffb0ebc5eab4266ca5df9b5d8 /usr.sbin/rpcbind | |
| parent | 6180f50bbb53574e14f9510a5bc41272c53d04d1 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/rpcbind')
| -rw-r--r-- | usr.sbin/rpcbind/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rpcbind/util.c b/usr.sbin/rpcbind/util.c index 814a379679af..7ada37645798 100644 --- a/usr.sbin/rpcbind/util.c +++ b/usr.sbin/rpcbind/util.c @@ -338,6 +338,7 @@ network_init(void) exit(1); } memcpy(local_in4, res->ai_addr, sizeof *local_in4); + freeaddrinfo(res); } #ifdef INET6 @@ -354,6 +355,7 @@ network_init(void) exit(1); } memcpy(local_in6, res->ai_addr, sizeof *local_in6); + freeaddrinfo(res); } /* @@ -395,7 +397,6 @@ network_init(void) freeifaddrs(ifp); #endif - freeaddrinfo(res); /* close(s); */ } |
