use mrb_malloc_simple() to allocate crc buffer; close #1302

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-06-25 15:39:34 +09:00
parent 3ceeb0be95
commit cf840c1d05
+1 -1
View File
@@ -565,7 +565,7 @@ mrb_read_irep_file(mrb_state *mrb, FILE* fp)
fpos = ftell(fp);
/* You don't need use SIZE_ERROR as block_size is enough small. */
for (i = 0; i < block_fallback_count; i++,block_size >>= 1){
buf = mrb_malloc(mrb, block_size);
buf = mrb_malloc_simple(mrb, block_size);
if (buf) break;
}
if (!buf) {