mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 18:20:05 +01: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>
(cherry picked from commit 617b7d2211)
This commit is contained in:
parent
a87a5b7e83
commit
dc24f90ddc
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue