This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/sim/common ChangeLog sim-options.c
- From: vapier at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 27 May 2011 18:05:16 -0000
- Subject: 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