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 | 37228c0fe214731e3e832eacd29fecac4695ac67 (patch) | |
tree | f5965b000606b0d4f6cbaa82ecb2deec2a599bff /compile.c | |
parent | 1fe73fc948c5f511d3c6a7b4dfb7fe61348ab169 (diff) | |
download | ruby-37228c0fe214731e3e832eacd29fecac4695ac67.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); |