aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r--gdb/gdbtk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c
index 2697ff4..63cb938 100644
--- a/gdb/gdbtk.c
+++ b/gdb/gdbtk.c
@@ -2708,8 +2708,9 @@ gdb_actions_command (clientData, interp, objc, objv)
}
/* 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)
free (temp->action);
free (temp);