Commit 5d6f7ac8 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #494 from RobertDiPaolo/bugfix/Memory_Leak

Fixed Memory Leak
parents f16fa5ed 7cf28a56
......@@ -616,8 +616,6 @@ static int ns_resolve2(const char *host, struct in_addr *ina) {
int rv = 0;
struct addrinfo hints, *servinfo, *p;
struct sockaddr_in *h = NULL;
char *ip = NS_MALLOC(17);
memset(ip, '\0', 17);
memset(&hints, 0, sizeof hints);
hints.ai_family = AF_INET;
......
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