diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-24 07:26:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-24 07:26:05 +0000 |
commit | 8f9eb891b3b42f8d275915d02e9a8536942ea5d5 (patch) | |
tree | f5965b000606b0d4f6cbaa82ecb2deec2a599bff /compile.c | |
parent | bc89cb711baf1459c7037164d15cfb2217e280e1 (diff) | |
download | ruby-8f9eb891b3b42f8d275915d02e9a8536942ea5d5.tar.gz |
compile.c: free before adjust error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1914,6 +1914,8 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *const anchor) generated_iseq[code_index++] = BIN(pop); } else if (diff < 0) { + xfree(generated_iseq); + xfree(line_info_table); COMPILE_ERROR(iseq, adjust->line_no, "iseq_set_sequence: adjust bug %d < %d", orig_sp, sp); |