Fixed possible memory leak.

This commit is contained in:
irungentoo 2014-02-10 06:44:45 -05:00
parent 7a2ed25d36
commit 80f001e03b

View File

@ -540,8 +540,10 @@ Networking_Core *new_networking(IP ip, uint16_t port)
addr6->sin6_scope_id = 0;
portptr = &addr6->sin6_port;
} else
} else {
free(temp);
return NULL;
}
if (ip.family == AF_INET6) {
char ipv6only = 0;