mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
committed by
Daniel Stone
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user