diff options
author | Keith Seitz <keiths@cygnus> | 1998-01-26 19:41:39 +0000 |
---|---|---|
committer | Keith Seitz <keiths@cygnus> | 1998-01-26 19:41:39 +0000 |
commit | d001edb7ba5b54ffc5f2dd73c62eb959a9ca4ec4 (patch) | |
tree | a4fe3c4f3a8001cacfa1c64853151dc6c8e7f8ab /gdb/gdbtk.c | |
parent | efe1929bb6ca4b2b9972e87deace0eabadbb7047 (diff) | |
download | gdb-d001edb7ba5b54ffc5f2dd73c62eb959a9ca4ec4.zip gdb-d001edb7ba5b54ffc5f2dd73c62eb959a9ca4ec4.tar.gz gdb-d001edb7ba5b54ffc5f2dd73c62eb959a9ca4ec4.tar.bz2 |
* gdbtk.c (gdb_actions_command): Make note of next action
before freeing all references to it.
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r-- | gdb/gdbtk.c | 3 |
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); |