This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [RFA/commit/procfs] /proc/.../map file descriptor leak


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> Digging further, I found that we leak the file descriptor created
Joel> when opening the procfs map file. we create a cleanup routine to make
Joel> sure that the associated file descriptor gets closed, but we never
Joel> call the cleanup.

This tickled a memory:

    http://sourceware.org/ml/gdb-patches/2008-10/msg00683.html

I didn't touch iterate_over_mappings though, so the old patch is
complementary.

I think your patch is good.  I agree it is cleaner the way you wrote it.

Tom


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