mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-11 02:30:44 -04:00
Memory leak.
This commit is contained in:
parent
8313838954
commit
77ae2d58c2
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dighost.c,v 1.51 2000/06/15 20:56:24 mws Exp $ */
|
||||
/* $Id: dighost.c,v 1.52 2000/06/15 22:08:44 mws Exp $ */
|
||||
|
||||
/*
|
||||
* Notice to programmers: Do not use this code as an example of how to
|
||||
|
|
@ -1881,6 +1881,7 @@ get_address(char *host, in_port_t port, isc_sockaddr_t *sockaddr) {
|
|||
memcpy(&sockaddr->type.sa,res->ai_addr, res->ai_addrlen);
|
||||
sockaddr->length = res->ai_addrlen;
|
||||
isc_sockaddr_setport(sockaddr, port);
|
||||
freeaddrinfo(res);
|
||||
#else
|
||||
he = gethostbyname(host);
|
||||
if (he == NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue