diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2006-06-26 10:48:44 -0700 |
---|---|---|
committer | Alan Coopersmith <alanc@alf.(none)> | 2006-06-26 10:48:44 -0700 |
commit | b3c869304cd85af034aa9debaa874e29d14fcbe6 (patch) | |
tree | f2100a1ec18cefe8aeec6c23217201f3b29bf8b7 /os/xdmcp.c | |
parent | 91dcac5295486cc55a34ad91704bfa483bd31eeb (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.c | 4 |
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]; } |