diff options
author | ume <ume@FreeBSD.org> | 2005-05-13 17:30:03 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-05-13 17:30:03 +0000 |
commit | ae7adfdc3c468054bbf670f1db551970d9b34277 (patch) | |
tree | b08d4c813c94c97f18383307f55fe491187146ae /lib | |
parent | 7ef908f6aafd522979d4950ea468ff9d9c6e3c0a (diff) | |
download | FreeBSD-src-ae7adfdc3c468054bbf670f1db551970d9b34277.zip FreeBSD-src-ae7adfdc3c468054bbf670f1db551970d9b34277.tar.gz |
free ypbuf only when yp_match() succeed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index 932048f..d6def63 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -2246,8 +2246,8 @@ _yp_getaddrinfo(rv, cb_data, ap) while (cur && cur->ai_next) cur = cur->ai_next; } + free(ypbuf); } - free(ypbuf); } /* ipnodes.byname can hold both IPv4/v6 */ |