From 3be09a4f4ffee94601051c37e5303b9546d816e1 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 5 Dec 2003 08:27:19 +0000 Subject: [PATCH] * eval.c (rb_exec_end_proc): maintain tmp_end_procs. [ruby-dev:22154] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ eval.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e075e4c710..a2cb2ff8db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 5 17:26:23 2003 Nobuyoshi Nakada + + * eval.c (rb_exec_end_proc): maintain tmp_end_procs. + [ruby-dev:22154] + Fri Dec 5 13:36:59 2003 Yukihiro Matsumoto * eval.c (rb_exec_end_proc): should not clear end_procs and diff --git a/eval.c b/eval.c index cb0ee69a93..5e88cf5176 100644 --- a/eval.c +++ b/eval.c @@ -6626,7 +6626,7 @@ rb_exec_end_proc() error_handle(status); } tmp = link; - link = link->next; + tmp_end_procs = link = link->next; free(tmp); } } @@ -6644,11 +6644,10 @@ rb_exec_end_proc() error_handle(status); } tmp = link; - link = link->next; + tmp_end_procs = link = link->next; free(tmp); } } - tmp_end_procs = 0; ruby_safe_level = safe; }