ruby-changes:13548
From: nobu <ko1@a...>
Date: Wed, 14 Oct 2009 09:07:00 +0900 (JST)
Subject: [ruby-changes:13548] Ruby:r25328 (trunk): * eval.c (ruby_run_node): need to call ruby_cleaup() always even
nobu 2009-10-14 09:06:42 +0900 (Wed, 14 Oct 2009) New Revision: 25328 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25328 Log: * eval.c (ruby_run_node): need to call ruby_cleaup() always even if any error occurred so far. Modified files: trunk/ChangeLog trunk/eval.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25327) +++ ChangeLog (revision 25328) @@ -1,3 +1,8 @@ +Wed Oct 14 09:06:38 2009 Nobuyoshi Nakada <nobu@r...> + + * 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@m...> * proc.c (mnew): Method#new checks for respond_to_missing? with Index: eval.c =================================================================== --- eval.c (revision 25327) +++ eval.c (revision 25328) @@ -236,7 +236,10 @@ 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)); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/