mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix unnecessary irep_free
This commit is contained in:
+1
-1
@@ -457,7 +457,7 @@ read_rite_section_irep_file(mrb_state *mrb, FILE *fp)
|
||||
result = sirep + bin_to_uint16(header.sirep);
|
||||
error_exit:
|
||||
mrb_free(mrb, buf);
|
||||
if (result != MRB_DUMP_OK) {
|
||||
if (result < MRB_DUMP_OK) {
|
||||
irep_free(sirep, mrb);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user