summaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-06 07:30:02 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-06 07:30:02 +0000
commita9ae70764feea64988e60febf7d1a39556717865 (patch)
tree94c2b97a9868e601847318fa9fc89e93f763d031 /cont.c
parentf6c2ad67829ce5419990d7c3c2be6a62fea0a7a7 (diff)
downloadruby-a9ae70764feea64988e60febf7d1a39556717865.tar.gz
ruby-a9ae70764feea64988e60febf7d1a39556717865.tar.xz
ruby-a9ae70764feea64988e60febf7d1a39556717865.zip
* cont.c (cont_free): check Fiber or Continuation.
* bootstraptest/test_knownbug.rb: remove a fixed test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index 36baa41ba..bc812674f 100644
--- a/cont.c
+++ b/cont.c
@@ -86,7 +86,8 @@ cont_free(void *ptr)
RUBY_FREE_UNLESS_NULL(cont->machine_register_stack);
#endif
RUBY_FREE_UNLESS_NULL(cont->vm_stack);
- if (cont->saved_thread.local_storage) {
+ if (cont->vm_stack && cont->saved_thread.local_storage) {
+ /* fiber */
st_free_table(cont->saved_thread.local_storage);
}
ruby_xfree(ptr);