[PATCH] malloc: Only trim on free [BZ #34882]
Florian Weimer
fweimer@redhat.com
Mon Nov 2 14:50:30 GMT 2026
* Wilco Dijkstra:
> Malloc may free blocks internally - currently these behave like free().
> This may result in trimming which updates internal state and can result
> in malloc returning NULL without running out of memory. Remove calls to
> _int_free_maybe_trim() and explicitly call it from _int_free_chunk().
> This fixes BZ #34882.
>
> Passes regress, OK for commit?
Not a review, but my on-call comments today are not relevant to the
current code base.
Thanks,
Florian
More information about the Libc-alpha
mailing list