Skip to content

Commit

Permalink
Fix memory leak in libio/wfileops.c do_ftell_wide [BZ #17370]
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Lammens authored and Siddhesh Poyarekar committed Sep 11, 2014
1 parent 3daee10 commit 984c0ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Version 2.21

* The following bugs are resolved with this release:

17363.
17363, 17370.

Version 2.20

Expand Down
1 change: 1 addition & 0 deletions libio/wfileops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 984c0ea

Please sign in to comment.