mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
e82b36035e
There are two issues to be fixed: - `mrb_irep` could leak if `mrb_calloc()` encountered an out-of-memory exception - `mrb_proc_merge_lvar()` allocated one extra variable name. `irep->lv` can always refer to only one less range than `irep->nlocals`. Also, when `mrb_proc_merge_lvar()` extends `irep->lv`, `mrb_realloc()` with `NULL` has the same behavior as `mrb_malloc()`.