Commit cc22ec85 authored by Tatsuhiko Kubo's avatar Tatsuhiko Kubo

Use mrb_malloc() instead of mrb_realloc().

parent bf173b32
......@@ -227,7 +227,7 @@ mrb_calloc(mrb_state *mrb, size_t nelem, size_t len)
nelem <= SIZE_MAX / len) {
size_t size;
size = nelem * len;
p = mrb_realloc(mrb, 0, size);
p = mrb_malloc(mrb, size);
memset(p, 0, size);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment