This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Code cleanup: Stream should be deleted where it got created
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 24 Jan 2012 13:44:20 -0700
- Subject: Re: [patch] Code cleanup: Stream should be deleted where it got created
- References: <20120124195258.GA3459@host2.jankratochvil.net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> I find it an obvious cleanup, I got a bug in new code due to it.
Jan> If one passes FILE * to some function acting on it one does not
Jan> expect the function would also close it. It makes all the error
Jan> recovery cleanups too magic otherwise.
Seems sane to me.
Tom