1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (ruby_run_node): need to call ruby_cleaup() always even

if any error occurred so far.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-10-14 00:06:42 +00:00
parent 72838c28bd
commit e53e556bd5
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Oct 14 09:06:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (ruby_run_node): need to call ruby_cleaup() always even
if any error occurred so far.
Wed Oct 14 08:08:12 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* proc.c (mnew): Method#new checks for respond_to_missing? with

5
eval.c
View file

@ -236,7 +236,10 @@ int
ruby_run_node(void *n)
{
int status;
if (!ruby_executable_node(n, &status)) return status;
if (!ruby_executable_node(n, &status)) {
ruby_cleanup(0);
return status;
}
return ruby_cleanup(ruby_exec_node(n));
}