mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-14 10:20:01 +00:00
Merge pull request #494 from RobertDiPaolo/bugfix/Memory_Leak
Fixed Memory Leak
This commit is contained in:
commit
5d6f7ac8ef
1 file changed
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user