ruby-changes:46963
From: ko1 <ko1@a...>
Date: Wed, 14 Jun 2017 13:27:19 +0900 (JST)
Subject: [ruby-changes:46963] ko1:r59078 (trunk): simply call xfree().
ko1 2017-06-14 13:27:14 +0900 (Wed, 14 Jun 2017) New Revision: 59078 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59078 Log: simply call xfree(). * compile.c (BADINSN_ERROR): mixing (void) and (int) will fail solaris compiler. [ruby-core:81668], [Bug #13658] Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 59077) +++ compile.c (revision 59078) @@ -1566,8 +1566,8 @@ get_ivar_ic_value(rb_iseq_t *iseq,ID id) https://github.com/ruby/ruby/blob/trunk/compile.c#L1566 dump_disasm_list_with_cursor(&anchor->anchor, list, dest) #define BADINSN_ERROR \ - (generated_iseq ? xfree(generated_iseq) : 0, \ - line_info_table ? xfree(line_info_table) : 0, \ + (xfree(generated_iseq), \ + xfree(line_info_table), \ BADINSN_DUMP(anchor, list, NULL), \ COMPILE_ERROR) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/