[Bug stdio/26215] printf_fp memory leak
jsm28 at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Thu Jul 9 21:54:05 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=26215
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Target Milestone|--- |2.32
Resolution|--- |FIXED
--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.32.
commit 90663e9c814a919fa1fb41a878c06ef2fae58ed2
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Jul 9 21:52:24 2020 +0000
Fix memory leak in __printf_fp_l (bug 26215).
__printf_fp_l has a memory leak in the case of some I/O errors, where
both buffer and wbuffer have been malloced but the handling of I/O
errors only frees wbuffer. This patch fixes this by moving the
declaration of buffer to an outer scope and ensuring that it is freed
when wbuffer is freed.
Tested for x86_64 and x86.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list