summaryrefslogtreecommitdiff
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
commit70d6d8ac811b2bb6d796469c5a4eb1020d41b43a (patch)
tree4fc8ff0d5b033d12f216ebee19f355abe8b61a7f
parent79029ea7539ca12197e6efd972db14db3271b6db (diff)
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
-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)