public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/17370] New: memory leak in libio/wfileops.c do_ftell_wide
@ 2014-09-10 19:29 tim.lammens at gmail dot com
  2014-09-10 19:31 ` [Bug stdio/17370] " tim.lammens at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tim.lammens at gmail dot com @ 2014-09-10 19:29 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17370

            Bug ID: 17370
           Summary: memory leak in libio/wfileops.c do_ftell_wide
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: critical
          Priority: P2
         Component: stdio
          Assignee: unassigned at sourceware dot org
          Reporter: tim.lammens at gmail dot com

The only malloc in libio/wfileops.c is unmatched with a free.

Here is an extract from a valgrind session, it mentions libc-2.17 but in
reality it is a patched version which matches the source code of the following
commit:
https://sourceware.org/git/?p=glibc.git;a=blobdiff;f=libio/wfileops.c;h=7f4c92399faf741af41cd61305b0e3bb401592f8;hp=9cebe771263e228f8c69e2f734730503f2c3fe99;hb=000232b9bcbf194f1e5fd0ff380000f341505405;hpb=116f4d1ad64a061488b29ef89f1a60f5e8c5963b

==2965== 410,460 bytes in 50 blocks are definitely lost in loss record 48 of 49
==2965==    at 0x4C2541D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==2965==    by 0x53B5BC5: _IO_wfile_seekoff (in /lib64/libc-2.17.so)
==2965==    by 0x53B02F5: ftell (in /lib64/libc-2.17.so)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-16 10:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-10 19:29 [Bug stdio/17370] New: memory leak in libio/wfileops.c do_ftell_wide tim.lammens at gmail dot com
2014-09-10 19:31 ` [Bug stdio/17370] " tim.lammens at gmail dot com
2014-09-10 20:20 ` tim.lammens at gmail dot com
2014-09-11  5:15 ` cvs-commit at gcc dot gnu.org
2014-09-11  5:17 ` siddhesh at redhat dot com
2014-09-16  9:12 ` cvs-commit at gcc dot gnu.org
2014-09-16 10:02 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).