1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Fix memory leak in error path of do_ftell_wide (BZ #17370)

This commit is contained in:
Siddhesh Poyarekar
2014-09-16 14:20:45 +05:30
parent f0416165a5
commit 545583d664
2 changed files with 9 additions and 1 deletions

View File

@ -708,7 +708,10 @@ do_ftell_wide (_IO_FILE *fp)
sequences must be complete since they are accepted as
wchar_t; if not, then that is an error. */
if (__glibc_unlikely (status != __codecvt_ok))
return WEOF;
{
free (out);
return WEOF;
}
offset += outstop - out;
free (out);