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

Steven Dake sdake at redhat.com
Thu Nov 10 20:29:42 GMT 2011


Nice work.

can you please backport to openais whitetank.

Thanks!
-steve

On 11/10/2011 03:54 AM, Angus Salkeld wrote:
> 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;
>  }
>  



More information about the discuss mailing list