Fix memory leak in libio/wfileops.c do_ftell_wide [BZ #17370]

This commit is contained in:
Tim Lammens 2014-09-11 10:35:54 +05:30 committed by Siddhesh Poyarekar
parent 3daee1076b
commit 984c0ea97f
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-09-11 Tim Lammens <tim.lammens@gmail.com>
[BZ #17370]
* libio/wfileops (do_ftell_wide): Free OUT.
2014-09-10 Chris Metcalf <cmetcalf@tilera.com>
* sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.

2
NEWS
View File

@ -9,7 +9,7 @@ Version 2.21
* The following bugs are resolved with this release:
17363.
17363, 17370.
Version 2.20

View File

@ -711,6 +711,7 @@ do_ftell_wide (_IO_FILE *fp)
return WEOF;
offset += outstop - out;
free (out);
}
/* We don't trust _IO_read_end to represent the current file offset