diff options
author | Hui Zhu <teawater@gmail.com> | 2008-12-22 10:56:33 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2008-12-22 10:56:33 +0000 |
commit | 063b9f8be2e470bdfe05b8b2f90d9cfc516165cc (patch) | |
tree | 7ccb190052f9b62cee0a6ccb9a53a4726fb7c108 | |
parent | aee9aaf98dd603ead5c4504f4b5e8fba225cc1b0 (diff) | |
download | gdb-multiprocess-20081120-branch.tar.gz |
2008-12-22 Hui Zhu <teawater@gmail.com>multiprocess-20081120-branch
* infcmd.c (focus_command): Fix memory leak.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/infcmd.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 488453081cf..cb87fe8c056 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-12-22 Hui Zhu <teawater@gmail.com> + + * infcmd.c (focus_command): Fix memory leak. + 2008-11-25 Pedro Alves <pedro@codesourcery.com> 2008-11-25 Pedro Alves <pedro@codesourcery.com> diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 96a11642d12..f2d37087666 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 |