aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-14 04:27:14 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-14 04:27:14 +0000
commit1ea31565843250578048d37b129881b442faf9b8 (patch)
tree4fc8ff0d5b033d12f216ebee19f355abe8b61a7f /compile.c
parent48b50db687b922bea68eabe4baeda4c512f994b6 (diff)
downloadruby-1ea31565843250578048d37b129881b442faf9b8.tar.gz
simply call xfree().
* compile.c (BADINSN_ERROR): mixing (void) and (int) will fail solaris compiler. [ruby-core:81668], [Bug #13658] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index 1c03bd15e4..80cc06a5dc 100644
--- a/compile.c
+++ b/compile.c
@@ -1566,8 +1566,8 @@ get_ivar_ic_value(rb_iseq_t *iseq,ID id)
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)