diff options
Diffstat (limited to 'gdb/common/cleanups.c')
-rw-r--r-- | gdb/common/cleanups.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/common/cleanups.c b/gdb/common/cleanups.c index 964df7a..e57e4cc 100644 --- a/gdb/common/cleanups.c +++ b/gdb/common/cleanups.c @@ -79,15 +79,15 @@ static struct cleanup * make_my_cleanup2 (struct cleanup **pmy_chain, make_cleanup_ftype *function, void *arg, void (*free_arg) (void *)) { - struct cleanup *new + struct cleanup *newobj = (struct cleanup *) xmalloc (sizeof (struct cleanup)); struct cleanup *old_chain = *pmy_chain; - new->next = *pmy_chain; - new->function = function; - new->free_arg = free_arg; - new->arg = arg; - *pmy_chain = new; + newobj->next = *pmy_chain; + newobj->function = function; + newobj->free_arg = free_arg; + newobj->arg = arg; + *pmy_chain = newobj; gdb_assert (old_chain != NULL); return old_chain; |