* gdbtk.c (gdb_actions_command): Make note of next action
before freeing all references to it.
This commit is contained in:
parent
efe1929bb6
commit
d001edb7ba
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jan 26 11:37:55 1998 Keith Seitz <keiths@onions.cygnus.com>
|
||||||
|
|
||||||
|
* gdbtk.c (gdb_actions_command): Make note of next action
|
||||||
|
before freeing all references to it.
|
||||||
|
|
||||||
Sat Jan 24 23:52:08 1998 Martin M. Hunt <hunt@cygnus.com>
|
Sat Jan 24 23:52:08 1998 Martin M. Hunt <hunt@cygnus.com>
|
||||||
|
|
||||||
* gdbtk.c: Merge from Foundry branch.
|
* gdbtk.c: Merge from Foundry branch.
|
||||||
|
|
|
@ -2708,8 +2708,9 @@ gdb_actions_command (clientData, interp, objc, objv)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free any existing actions */
|
/* Free any existing actions */
|
||||||
for (temp = tp->actions; temp != NULL; temp = temp->next)
|
for (temp = tp->actions; temp != NULL; temp = next)
|
||||||
{
|
{
|
||||||
|
next = temp->next;
|
||||||
if (temp->action)
|
if (temp->action)
|
||||||
free (temp->action);
|
free (temp->action);
|
||||||
free (temp);
|
free (temp);
|
||||||
|
|
Loading…
Reference in a new issue