summaryrefslogtreecommitdiff
path: root/os/xdmcp.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2006-06-26 10:48:44 -0700
committerAlan Coopersmith <alanc@alf.(none)>2006-06-26 10:48:44 -0700
commitb3c869304cd85af034aa9debaa874e29d14fcbe6 (patch)
treef2100a1ec18cefe8aeec6c23217201f3b29bf8b7 /os/xdmcp.c
parent91dcac5295486cc55a34ad91704bfa483bd31eeb (diff)
Free small, one-time memory leak in xdmcp -from handling
Part of Patch #6046 <https://bugs.freedesktop.org/attachment.cgi?id=6046>
Diffstat (limited to 'os/xdmcp.c')
-rw-r--r--os/xdmcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/xdmcp.c b/os/xdmcp.c
index 3aad4eee3..4f87097a0 100644
--- a/os/xdmcp.c
+++ b/os/xdmcp.c
@@ -1603,6 +1603,10 @@ get_fromaddr_by_name(
, &ai, &aifirst
#endif
);
+#if defined(IPv6) && defined(AF_INET6)
+ if (aifirst != NULL)
+ freeaddrinfo(aifirst);
+#endif
xdm_from = argv[i];
}