]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2008-12-22 Hui Zhu <teawater@gmail.com> multiprocess-20081120-branch
authorHui Zhu <teawater@gmail.com>
Mon, 22 Dec 2008 10:56:33 +0000 (10:56 +0000)
committerHui Zhu <teawater@gmail.com>
Mon, 22 Dec 2008 10:56:33 +0000 (10:56 +0000)
* infcmd.c (focus_command): Fix memory leak.

gdb/ChangeLog
gdb/infcmd.c

index 488453081cf42d170fe78df5ccad276f10348690..cb87fe8c056d75691ccda9096618aebeeaa448d5 100644 (file)
@@ -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>
index 96a11642d12c5cc3c9e5dfb6ff204e946a1b5375..f2d370876666fa67b68780611614fa2f2aecad62 100644 (file)
@@ -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