ruby-changes:47534
From: nobu <ko1@a...>
Date: Thu, 24 Aug 2017 16:26:12 +0900 (JST)
Subject: [ruby-changes:47534] nobu:r59650 (trunk): compile.c: free before adjust error
nobu 2017-08-24 16:26:05 +0900 (Thu, 24 Aug 2017) New Revision: 59650 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59650 Log: compile.c: free before adjust error Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 59649) +++ compile.c (revision 59650) @@ -1914,6 +1914,8 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ https://github.com/ruby/ruby/blob/trunk/compile.c#L1914 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/