Don't leak res in network_init(..)
Call freeaddrinfo on it after it's been used MFC after: 1 week Reported by: Coverity CID: 1225050 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
d9082519b6
commit
b07f123b60
@ -396,6 +396,7 @@ network_init(void)
|
||||
freeifaddrs(ifp);
|
||||
#endif
|
||||
|
||||
freeaddrinfo(res);
|
||||
/* close(s); */
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user