From b3c869304cd85af034aa9debaa874e29d14fcbe6 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 26 Jun 2006 10:48:44 -0700 Subject: [PATCH] Free small, one-time memory leak in xdmcp -from handling Part of Patch #6046 --- os/xdmcp.c | 4 ++++ 1 file changed, 4 insertions(+) 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]; }