ifconfig: free memory allocated by getaddrinfo()
Reported by: emaste, Coverity Sponsored by: Rubicon Communications, LLC (Netgate)
This commit is contained in:
parent
517db80f16
commit
c45051c7dd
@ -242,6 +242,7 @@ setcarp_peer6(const char *val, int d, int s, const struct afswtch *afp)
|
||||
|
||||
memcpy(&carp_addr6, &((struct sockaddr_in6 *)res->ai_addr)->sin6_addr,
|
||||
sizeof(carp_addr6));
|
||||
freeaddrinfo(res);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user