зеркало из https://github.com/github/ruby.git
* 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:
Родитель
72838c28bd
Коммит
e53e556bd5
|
@ -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
5
eval.c
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче