* gc.c (rb_objspace_free): finalizers should be called separately

from freeing objspace.  [ruby-dev:42479]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-10-31 13:32:13 +00:00
parent a2c4b890be
commit 5eced07cd7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Oct 31 22:32:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (rb_objspace_free): finalizers should be called separately
from freeing objspace. [ruby-dev:42479]
Sun Oct 31 22:24:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (ruby_cleanup): free current VM and its objspace even

1
gc.c
View File

@ -405,7 +405,6 @@ rb_objspace_alloc(void)
void
rb_objspace_free(rb_objspace_t *objspace)
{
rb_objspace_call_finalizer(objspace);
if (objspace->profile.record) {
free(objspace->profile.record);
objspace->profile.record = 0;