[PATCH 20/22] os: Fix a memory leak

Alan Coopersmith alan.coopersmith at oracle.com
Wed Dec 29 15:00:09 PST 2010


On 12/29/10 11:27 AM, Pauli wrote:
> From: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
> 
> Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
> ---
>  os/access.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/os/access.c b/os/access.c
> index d43fdf8..494986e 100644
> --- a/os/access.c
> +++ b/os/access.c
> @@ -1057,8 +1057,10 @@ Bool LocalClient(ClientPtr client)
>  	}
>  	for (host = selfhosts; host; host = host->next)
>  	{
> -	    if (addrEqual (family, addr, alen, host))
> +	    if (addrEqual (family, addr, alen, host)) {
> +		free(from);
>  		return TRUE;
> +	    }
>  	}
>  	free(from);
>      }

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list