]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/common/ChangeLog
sim: fix minor --sysroot mem leak
authorMike Frysinger <vapier@gentoo.org>
Fri, 27 May 2011 18:05:16 +0000 (18:05 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 27 May 2011 18:05:16 +0000 (18:05 +0000)
commit440db5755211bd29af95c374882c109ede000b54
treee738878e775cd0cd3cbfbc5b758335696056cb92
parent432b4d03ad0f23970315e9f9dec080ab4a9ab94b
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>
sim/common/ChangeLog
sim/common/sim-options.c