mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove null checks for xfree
xfree can handle null values, so we don't need to check it.
This commit is contained in:
parent
d29cd972f7
commit
d0b774cfb8
11 changed files with 18 additions and 37 deletions
4
iseq.h
4
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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue