os: Fix a memory leak

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
(cherry picked from commit 617b7d2211)
This commit is contained in:
Pauli Nieminen 2010-12-30 19:19:42 +02:00 committed by Adam Jackson
parent a87a5b7e83
commit dc24f90ddc

View file

@ -1145,8 +1145,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);
}