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:
parent
3e1455505a
commit
617b7d2211
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user