summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-05 08:27:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-05 08:27:19 +0000
commit3be09a4f4ffee94601051c37e5303b9546d816e1 (patch)
treea557cf8101fbf4c635a6e71f31172d831dcadd7a /eval.c
parentaabecebd69a59807ca27a860a096385fb90ac2e4 (diff)
* 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
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 2 insertions, 3 deletions
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;
}