This is the mail archive of the gdb-cvs@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]

src/sim/common ChangeLog sim-options.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	vapier@sourceware.org	2011-05-27 18:05:16

Modified files:
	sim/common     : ChangeLog sim-options.c 

Log message:
	sim: fix minor --sysroot mem leak
	
	The current --sysroot parsing attempts to keep from leaking memory by
	treating the empty string specially (sine this is the initial value),
	but it ends up leaking memory when the arg is an empty string.  So if
	someone uses --sysroot "", the old value is leaked, as is the new one.
	
	Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/ChangeLog.diff?cvsroot=src&r1=1.250&r2=1.251
http://sourceware.org/cgi-bin/cvsweb.cgi/src/sim/common/sim-options.c.diff?cvsroot=src&r1=1.26&r2=1.27


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