mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
codegen.c: fix memory leak from new_litbn().
This commit is contained in:
@@ -118,7 +118,7 @@ codegen_error(codegen_scope *s, const char *message)
|
||||
mrb_free(s->mrb, s->iseq);
|
||||
for (int i=0; i<s->irep->plen; i++) {
|
||||
mrb_pool_value *pv = &s->pool[i];
|
||||
if ((pv->tt & 0x3) == IREP_TT_STR) {
|
||||
if ((pv->tt & 0x3) == IREP_TT_STR || pv->tt == IREP_TT_BIGINT) {
|
||||
mrb_free(s->mrb, (void*)pv->u.str);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user