about summary refs log tree commit diff
path: root/stdio-common/tst-printf-fp-leak.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory leak in __printf_fp_l (bug 26215).Joseph Myers2020-07-091-0/+34
__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.