Commit 1898c001 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

Coverity doesnt know that getaddrinfo only allocates res on success.

parent 5852ed5c
......@@ -189,7 +189,7 @@ VSS_ResolveOne(void *dst, const char *addr, const char *port,
retval = VSA_Malloc(res->ai_addr, res->ai_addrlen);
else
retval = VSA_Build(dst, res->ai_addr, res->ai_addrlen);
freeaddrinfo(res);
}
freeaddrinfo(res);
return (retval);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment