src/gdb ChangeLog procfs.c

brobecke@sourceware.org brobecke@sourceware.org
Thu Nov 10 16:36:00 GMT 2011


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



More information about the Gdb-cvs mailing list