[corosync] [openais whitetank] [PATCH] Free mem allocated by getaddrinfo

Steven Dake sdake at redhat.com
Fri Nov 11 03:27:51 GMT 2011


On 11/10/2011 05:45 PM, Angus Salkeld wrote:
> 
> Index: exec/totemip.c
> ===================================================================
> --- exec/totemip.c	(revision 2185)
> +++ exec/totemip.c	(working copy)
> @@ -278,6 +278,7 @@
>  	else
>  		memcpy(totemip->addr, &sa6->sin6_addr, sizeof(struct in6_addr));
>  
> +	freeaddrinfo(ainfo);
>  	return 0;
>  }
>  

Reviewed-by: Steven Dake <sdake at redhat.com>
> _______________________________________________
> discuss mailing list
> discuss at corosync.org
> http://lists.corosync.org/mailman/listinfo/discuss



More information about the discuss mailing list