summaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-27 18:05:16 +0000
committerMike Frysinger <vapier@gentoo.org>2011-05-27 18:05:16 +0000
commit578efa3a315d4844ad34833fd72c5a42b3203643 (patch)
tree110c59ebdeee681a9f097c2f5f06f58a0236d562 /gdb/inferior.c
parent159c2cd07096bdc779ebf3ad8286a74054c49f35 (diff)
downloadgdb-578efa3a315d4844ad34833fd72c5a42b3203643.tar.gz
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>
Diffstat (limited to 'gdb/inferior.c')
0 files changed, 0 insertions, 0 deletions