This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/22876] dprintf with closed fd leaks memory


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

--- Comment #2 from Szabolcs Nagy <nszabolcs at gmail dot com> ---
(In reply to Andreas Schwab from comment #1)
> Why is _IO_FINISH not doing that?

if _IO_new_file_attach fails it returns NULL,
so the caller cannot do _IO_FINISH on fp.

either _IO_new_file_seekoff should cleanup on
error or it should pass things up so caller
can do it.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]