diff options
| author | Masaki Muranaka <[email protected]> | 2013-04-24 11:31:48 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-04-24 11:31:48 +0900 |
| commit | 92e43746e08640738d4aca6f69d30c7068c96922 (patch) | |
| tree | b9246b825c065843c3f92d99810a2c1a8b2701a7 | |
| parent | 12cc55fcfa19b211a49e280313638dd9225033a8 (diff) | |
| download | mruby-92e43746e08640738d4aca6f69d30c7068c96922.tar.gz mruby-92e43746e08640738d4aca6f69d30c7068c96922.zip | |
Fix segfault on loading binary RITE files.
| -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 bc2f07af5..213d8f899 100644 --- a/src/load.c +++ b/src/load.c @@ -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; |
