getaddrinfo: Eliminate another strdup call

This commit is contained in:
Florian Weimer 2017-06-03 08:37:13 +02:00
parent 808fd9e6fe
commit 363911ce13
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-06-03 Florian Weimer <fweimer@redhat.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): Call __strdup instead
of strdup.
2017-06-02 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86/cacheinfo.c (__x86_shared_non_temporal_threshold):

View File

@ -732,7 +732,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
(*pat)->name = NULL;
else if (canonbuf == NULL)
{
canonbuf = strdup (air->canon);
canonbuf = __strdup (air->canon);
if (canonbuf == NULL)
{
result = -EAI_MEMORY;