diff options
Diffstat (limited to 'stdio-common/printf_fp.c')
-rw-r--r-- | stdio-common/printf_fp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdio-common/printf_fp.c b/stdio-common/printf_fp.c index 9e0ce96..49c6935 100644 --- a/stdio-common/printf_fp.c +++ b/stdio-common/printf_fp.c @@ -1250,6 +1250,9 @@ __printf_fp_l (FILE *fp, locale_t loc, { free (buffer); free (wbuffer); + /* Avoid a double free if the subsequent PADN encounters an + I/O error. */ + wbuffer = NULL; } } |