From d001edb7ba5b54ffc5f2dd73c62eb959a9ca4ec4 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Mon, 26 Jan 1998 19:41:39 +0000 Subject: * gdbtk.c (gdb_actions_command): Make note of next action before freeing all references to it. --- gdb/ChangeLog-gdbtk | 5 +++++ gdb/gdbtk.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog-gdbtk b/gdb/ChangeLog-gdbtk index 8bcc391..7873d96 100644 --- a/gdb/ChangeLog-gdbtk +++ b/gdb/ChangeLog-gdbtk @@ -1,3 +1,8 @@ +Mon Jan 26 11:37:55 1998 Keith Seitz + + * 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 * gdbtk.c: Merge from Foundry branch. 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); -- cgit v1.1