]> git.ipfire.org Git - thirdparty/glibc.git/commit
gaiconf_init: Avoid double-free in label and precedence lists
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 3 Aug 2021 15:41:03 +0000 (21:11 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 3 Aug 2021 15:41:03 +0000 (21:11 +0530)
commit77a34079d8f3d63b61543bf3af93043f8674e4c4
treece95a4a22aada0b845e6c196b08ccba2c70ec5a7
parent45caed9d67a00af917d8b5b88d4b5eb1225b7aef
gaiconf_init: Avoid double-free in label and precedence lists

labellist and precedencelist could get freed a second time if there
are allocation failures, so set them to NULL to avoid a double-free.

Reviewed-by: Arjun Shankar <arjun@redhat.com>
sysdeps/posix/getaddrinfo.c