From 22f22cc2e2726c1c236d08167c03dad72fad08bf Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Mon, 10 Sep 2012 20:46:24 +0900 Subject: use mrb_malloc instead of clearing mrb_calloc --- src/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/array.c') diff --git a/src/array.c b/src/array.c index 4992d3281..f1f034aa2 100644 --- a/src/array.c +++ b/src/array.c @@ -46,7 +46,7 @@ ary_new_capa(mrb_state *mrb, int capa) } a = (struct RArray*)mrb_obj_alloc(mrb, MRB_TT_ARRAY, mrb->array_class); - a->ptr = (mrb_value *)mrb_calloc(mrb, blen, 1); + a->ptr = (mrb_value *)mrb_malloc(mrb, blen); a->aux.capa = capa; a->len = 0; -- cgit v1.2.3