diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-08 10:01:40 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-08 10:01:40 +0000 |
commit | 72ba13aa8e86eb7f12bd17737a689ad2ec214036 (patch) | |
tree | a45e9d137742a163baea3ee66c918c18b9808b1e /vm.c | |
parent | 4a7311e12977ca2cd388f609c3c705ba219bfee5 (diff) | |
download | ruby-72ba13aa8e86eb7f12bd17737a689ad2ec214036.tar.gz |
* array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,
enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c,
io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c,
string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c,
vm.c, gc.c:
allocated memory objects by xmalloc (ruby_xmalloc) should be
freed by xfree (ruby_xfree).
* ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c,
ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c,
ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c,
ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c,
ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c:
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1536,8 +1536,7 @@ thread_alloc(VALUE klass) obj = Data_Wrap_Struct(klass, rb_thread_mark, thread_free, th); #else rb_thread_t *th; - obj = Data_Make_Struct(klass, rb_thread_t, - rb_thread_mark, thread_free, th); + obj = Data_Make_Struct(klass, rb_thread_t, rb_thread_mark, thread_free, th); #endif return obj; } @@ -1627,7 +1626,7 @@ nsdr(void) for (i=0; i<n; i++) { rb_ary_push(ary, rb_str_new2(syms[i])); } - free(syms); + free(syms); /* OK */ #endif return ary; } @@ -1708,8 +1707,7 @@ Init_VM(void) vm->self = Data_Wrap_Struct(rb_cVM, rb_vm_mark, vm_free, vm); /* create main thread */ - th_self = th->self = Data_Wrap_Struct(rb_cThread, rb_thread_mark, - thread_free, th); + th_self = th->self = Data_Wrap_Struct(rb_cThread, rb_thread_mark, thread_free, th); vm->main_thread = th; vm->running_thread = th; th->vm = vm; |