mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-11 02:22:26 +03:00
__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.
1.1 KiB
1.1 KiB