Free small, one-time memory leak in xdmcp -from handling

Part of Patch #6046 <https://bugs.freedesktop.org/attachment.cgi?id=6046>
This commit is contained in:
Peter Breitenlohner 2006-06-26 10:48:44 -07:00 committed by Alan Coopersmith
parent 91dcac5295
commit b3c869304c

View File

@ -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];
}