diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-17 09:36:05 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-09-17 09:36:05 +0000 |
commit | 0ff935ddcf4571176d649e5ae5c1c2322f022660 (patch) | |
tree | d3f505227c0ff960dce425a24c1722e6e29d5ef8 /eval.c | |
parent | 8929d928116ceb4ebae08f7e6273e7d0d7e59053 (diff) | |
download | ruby-0ff935ddcf4571176d649e5ae5c1c2322f022660.tar.gz ruby-0ff935ddcf4571176d649e5ae5c1c2322f022660.tar.xz ruby-0ff935ddcf4571176d649e5ae5c1c2322f022660.zip |
* eval.c (rb_mod_nesting): load wrapping module should appear in
Module#nesting list. (ruby-bugs-ja:PR#328)
* eval.c (rb_thread_remove): free stack buffer on remove.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1570,6 +1570,9 @@ rb_mod_nesting() if (!NIL_P(cbase->nd_clss)) rb_ary_push(ary, cbase->nd_clss); cbase = cbase->nd_next; } + if (ruby_wrapper && RARRAY(ary)->len == 0) { + rb_ary_push(ary, ruby_wrapper); + } return ary; } @@ -7766,6 +7769,8 @@ rb_thread_remove(th) th->gid = 0; th->prev->next = th->next; th->next->prev = th->prev; + if (th->stk_ptr) free(th->stk_ptr); + th->stk_ptr = 0; } static int |