aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2008-12-22 10:56:33 +0000
committerHui Zhu <teawater@gmail.com>2008-12-22 10:56:33 +0000
commit8586ea6ba99543dc6ad52f1c906ff3890e0914bf (patch)
treecb8276b0bc5b3a9c76ba7324a76614b3a1e4334b /gdb/infcmd.c
parent9c421dc4db41c0d43df4868394aceddb5aa87520 (diff)
downloadfsf-binutils-gdb-multiprocess-20081120-branch.zip
fsf-binutils-gdb-multiprocess-20081120-branch.tar.gz
fsf-binutils-gdb-multiprocess-20081120-branch.tar.bz2
2008-12-22 Hui Zhu <teawater@gmail.com>multiprocess-20081120-branch
* infcmd.c (focus_command): Fix memory leak.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 96a1164..f2d3708 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -219,6 +219,8 @@ focus_command (char *spec, int from_tty)
return;
}
+ if (current_itset)
+ xfree (current_itset);
current_itset = itset;
/* For now, set a current exec from the first element of the focus