summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-24 07:26:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-24 07:26:05 +0000
commit37228c0fe214731e3e832eacd29fecac4695ac67 (patch)
treef5965b000606b0d4f6cbaa82ecb2deec2a599bff /compile.c
parent1fe73fc948c5f511d3c6a7b4dfb7fe61348ab169 (diff)
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 175a258f24..fcadf29cc2 100644
--- a/compile.c
+++ b/compile.c
@@ -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);