mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 11:50:06 +01:00
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:
parent
91dcac5295
commit
b3c869304c
1 changed files with 4 additions and 0 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue