This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]