diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-02-02 01:32:12 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-02-02 01:32:12 -0500 |
commit | b0302863a36ef6ad24bd25e3ef4df74b9a56980d (patch) | |
tree | 3df6d8490c776af5799a6d7f473caa846cdf5678 /src/network/gethostbyname2_r.c | |
parent | 70b584bc9467ce939c73898212c17be1ab7e39af (diff) | |
download | musl-b0302863a36ef6ad24bd25e3ef4df74b9a56980d.tar.gz musl-b0302863a36ef6ad24bd25e3ef4df74b9a56980d.tar.xz musl-b0302863a36ef6ad24bd25e3ef4df74b9a56980d.zip |
fix memory leak due to double call to getaddrinfo in gethostbyname*
Diffstat (limited to 'src/network/gethostbyname2_r.c')
-rw-r--r-- | src/network/gethostbyname2_r.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/network/gethostbyname2_r.c b/src/network/gethostbyname2_r.c index 49e4e531..0dc6dc00 100644 --- a/src/network/gethostbyname2_r.c +++ b/src/network/gethostbyname2_r.c @@ -30,7 +30,6 @@ int gethostbyname2_r(const char *name, int af, buflen -= sizeof(char *)-i; } - getaddrinfo(name, 0, &hint, &ai); switch (getaddrinfo(name, 0, &hint, &ai)) { case EAI_NONAME: *err = HOST_NOT_FOUND; |