]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: ostream-file - Shrink buffer to optimal size after it is flushed
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 13 Mar 2026 11:36:47 +0000 (13:36 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Sat, 14 Mar 2026 19:06:15 +0000 (19:06 +0000)
commit116ca47dc83bc8a23014ba3bfae41f187cb7b010
tree5c317ed759dbeaff75cdb623981360ea29a85347
parentadee3a64f015fffcb63c1cfedc349b41dc6b77d7
lib: ostream-file - Shrink buffer to optimal size after it is flushed

If the ostream buffer was temporarily grown large, it was never shrunk back
to a small value, causing memory to be wasted for long-lived streams.
src/lib/ostream-file.c