summaryrefslogtreecommitdiff
path: root/os/access.c
diff options
context:
space:
mode:
authorPauli Nieminen <ext-pauli.nieminen@nokia.com>2010-12-30 19:19:42 +0200
committerDaniel Stone <daniel@fooishbar.org>2010-12-31 12:52:51 +0000
commit617b7d22115ccaaaa7ec69c99885054d33a3bc37 (patch)
treec8a2f497e7e2208b59211e588707e1d771c480f4 /os/access.c
parent3e1455505addc7e52178fa04399aef2a8522c921 (diff)
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>
Diffstat (limited to 'os/access.c')
-rw-r--r--os/access.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/access.c b/os/access.c
index d43fdf8e4..494986e1e 100644
--- a/os/access.c
+++ b/os/access.c
@@ -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);
}