diff options
author | Romain Geissler <romain.geissler@amadeus.com> | 2023-09-25 01:21:51 +0100 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-09-25 01:21:51 +0100 |
commit | ec6b95c3303c700eb89eebeda2d7264cc184a796 (patch) | |
tree | 807844f0f231ea250d81e0f207369c34e9071d44 /sysdeps | |
parent | 5d00c201b9a2da768a79ea8d5311f257871c0b43 (diff) | |
download | glibc-ec6b95c3303c700eb89eebeda2d7264cc184a796.zip glibc-ec6b95c3303c700eb89eebeda2d7264cc184a796.tar.gz glibc-ec6b95c3303c700eb89eebeda2d7264cc184a796.tar.bz2 |
Fix leak in getaddrinfo introduced by the fix for CVE-2023-4806 [BZ #30843]
This patch fixes a very recently added leak in getaddrinfo.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index 47f421f..5311249 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -1196,9 +1196,7 @@ free_and_return: if (malloc_name) free ((char *) name); free (addrmem); - if (res.free_at) - free (res.at); - free (res.canon); + gaih_result_reset (&res); return result; } |