Explorar el Código

Free mem allocated by getaddrinfo

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Angus Salkeld hace 14 años
padre
commit
390391acba
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      exec/totemip.c

+ 1 - 0
exec/totemip.c

@@ -304,6 +304,7 @@ int totemip_parse(struct totem_ip_address *totemip, const char *addr, int family
 	else
 	else
 		memcpy(totemip->addr, &sa6->sin6_addr, sizeof(struct in6_addr));
 		memcpy(totemip->addr, &sa6->sin6_addr, sizeof(struct in6_addr));
 
 
+	freeaddrinfo(ainfo);
 	return 0;
 	return 0;
 }
 }