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>
This commit is contained in:
Pauli Nieminen 2010-12-30 19:19:42 +02:00 committed by Daniel Stone
parent 3e1455505a
commit 617b7d2211

View File

@ -1057,8 +1057,10 @@ Bool LocalClient(ClientPtr client)
} }
for (host = selfhosts; host; host = host->next) for (host = selfhosts; host; host = host->next)
{ {
if (addrEqual (family, addr, alen, host)) if (addrEqual (family, addr, alen, host)) {
free(from);
return TRUE; return TRUE;
}
} }
free(from); free(from);
} }