[corosync] [PATCH 1/7] Free mem allocated by getaddrinfo

Angus Salkeld asalkeld at redhat.com
Thu Nov 10 10:54:50 GMT 2011


Signed-off-by: Angus Salkeld <asalkeld at redhat.com>
---
 exec/totemip.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/exec/totemip.c b/exec/totemip.c
index f3c3d96..aceafdb 100644
--- a/exec/totemip.c
+++ b/exec/totemip.c
@@ -304,6 +304,7 @@ int totemip_parse(struct totem_ip_address *totemip, const char *addr, int family
 	else
 		memcpy(totemip->addr, &sa6->sin6_addr, sizeof(struct in6_addr));
 
+	freeaddrinfo(ainfo);
 	return 0;
 }
 
-- 
1.7.7



More information about the discuss mailing list