This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] getgrent_next_nss (compat-initgroups): Remove alloca fallback [BZ #18023]
- From: DJ Delorie <dj at redhat dot com>
- To: fweimer at redhat dot com (Florian Weimer)
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 25 Jun 2018 15:55:55 -0400
- Subject: Re: [PATCH] getgrent_next_nss (compat-initgroups): Remove alloca fallback [BZ #18023]
fweimer@redhat.com (Florian Weimer) writes:
> + if (tmpbuf != buffer)
> + free (tmpbuf);
> + tmpbuf = malloc (tmplen);
No need to use realloc since nothing should be in the old buffer...
LGTM.