mirror of https://git.musl-libc.org/git/musl
Browse Source
commit 3e16313f8f introduced this bug by
making the copy case reachable with n (new size) smaller than n0
(original size). this was left as the only way of shrinking an
allocation because it reduces fragmentation if a free chunk of the
appropriate size is available. when that's not the case, another
approach may be better, but any such improvement would be independent
of fixing this bug.
master
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue