This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog procfs.c
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 10 Nov 2011 16:36:19 -0000
- Subject: src/gdb ChangeLog procfs.c
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2011-11-10 16:36:19
Modified files:
gdb : ChangeLog procfs.c
Log message:
[procfs] /proc/.../map file descriptor leak
When opening the procfs map file, we create a cleanup routine to make
sure that the associated file descriptor gets closed, but we never
call the cleanup. So the FD gets leaked.
gdb/ChangeLog:
* procfs.c (iterate_over_mappings): Call do_cleanups before
returning.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13497&r2=1.13498
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/procfs.c.diff?cvsroot=src&r1=1.146&r2=1.147