This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/22876] dprintf with closed fd leaks memory
- From: "nszabolcs at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 23 Feb 2018 14:05:51 +0000
- Subject: [Bug stdio/22876] dprintf with closed fd leaks memory
- Auto-submitted: auto-generated
- References: <bug-22876-131@http.sourceware.org/bugzilla/>
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.