diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-06-04 03:39:22 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-06-04 03:39:22 -0400 |
commit | 6a25313c1122629b43b990ada70af1c209f03a54 (patch) | |
tree | f91e8a217f690c27cfa27e9914489081630f8237 /src/malloc | |
parent | bdad2fefb206d9727d4a3254f7883b8455452d89 (diff) | |
download | musl-6a25313c1122629b43b990ada70af1c209f03a54.tar.gz musl-6a25313c1122629b43b990ada70af1c209f03a54.tar.bz2 musl-6a25313c1122629b43b990ada70af1c209f03a54.tar.xz musl-6a25313c1122629b43b990ada70af1c209f03a54.zip |
simplify vasprintf implementation
the old implementation preallocated a buffer in order to try to avoid
calling vsnprintf more than once. not only did this potentially lead
to memory fragmentation from trimming with realloc; it also pulled in
realloc/free, which otherwise might not be needed in a static linked
program.
Diffstat (limited to 'src/malloc')
0 files changed, 0 insertions, 0 deletions