From: Hui Zhu Date: Mon, 22 Dec 2008 10:56:33 +0000 (+0000) Subject: 2008-12-22 Hui Zhu X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmultiprocess-20081120-branch;p=thirdparty%2Fbinutils-gdb.git 2008-12-22 Hui Zhu * infcmd.c (focus_command): Fix memory leak. --- 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 + + * infcmd.c (focus_command): Fix memory leak. + 2008-11-25 Pedro Alves 2008-11-25 Pedro Alves 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