diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-06-25 15:39:34 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-06-25 15:39:34 +0900 |
| commit | cf840c1d05f33f0e32f86508bdeae880fd059a5e (patch) | |
| tree | 4ee94e0b041483b64241bf6c0f5a7a2f2d9fa8b3 | |
| parent | 3ceeb0be95874fe867f25004618c31ca8e23ecf4 (diff) | |
| download | mruby-cf840c1d05f33f0e32f86508bdeae880fd059a5e.tar.gz mruby-cf840c1d05f33f0e32f86508bdeae880fd059a5e.zip | |
use mrb_malloc_simple() to allocate crc buffer; close #1302
| -rw-r--r-- | src/load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/load.c b/src/load.c index a83fc7574..092ddbde8 100644 --- a/src/load.c +++ b/src/load.c @@ -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) { |
