summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/iseq.h b/iseq.h
index d71f37ca13..35780f2862 100644
--- a/iseq.h
+++ b/iseq.h
@@ -66,9 +66,7 @@ ISEQ_ORIGINAL_ISEQ_CLEAR(const rb_iseq_t *iseq)
{
void *ptr = ISEQ_BODY(iseq)->variable.original_iseq;
ISEQ_BODY(iseq)->variable.original_iseq = NULL;
- if (ptr) {
- ruby_xfree(ptr);
- }
+ ruby_xfree(ptr);
}
static inline VALUE *