summaryrefslogtreecommitdiffstats
path: root/enumerator.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-08 10:01:40 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-08 10:01:40 +0000
commit3edaf669ba25bcceebb8e4d6d3b2f9e338b35b94 (patch)
treea45e9d137742a163baea3ee66c918c18b9808b1e /enumerator.c
parent386a3ef3344cb44f06d8d8e3a67c7ead3ee6c00b (diff)
downloadruby-3edaf669ba25bcceebb8e4d6d3b2f9e338b35b94.tar.gz
ruby-3edaf669ba25bcceebb8e4d6d3b2f9e338b35b94.tar.xz
ruby-3edaf669ba25bcceebb8e4d6d3b2f9e338b35b94.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/enumerator.c b/enumerator.c
index afde97e19..3f5262670 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -206,8 +206,7 @@ enumerator_allocate(VALUE klass)
struct enumerator *ptr;
VALUE enum_obj;
- enum_obj = Data_Make_Struct(klass, struct enumerator,
- enumerator_mark, -1, ptr);
+ enum_obj = Data_Make_Struct(klass, struct enumerator, enumerator_mark, -1, ptr);
ptr->obj = Qundef;
return enum_obj;