[PATCH v2] xmalloc: Fix warnings with gcc analyzer
Siddhesh Poyarekar
siddhesh@sourceware.org
Wed Jul 28 11:27:34 GMT 2021
On 7/28/21 4:55 PM, Florian Weimer wrote:
> So it does not free anything ever?
Specifically, it does not act as a substitute for free(); it does free
during reallocation.
> We should not have two different attributes for xrealloc. I suggest to
> drop the attribute from the include/* version for now, until we can
> clean this up.
OK. Perhaps it would make sense to consolidate the two x* functions too
later. I'll post v3.
Siddhesh
More information about the Libc-alpha
mailing list