mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
iseq.c: avoid Null pointer dereference
detected by coverity scan git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae19a18996
commit
4fb8d00436
1 changed files with 1 additions and 1 deletions
2
iseq.c
2
iseq.c
|
@ -115,7 +115,7 @@ rb_iseq_free(const rb_iseq_t *iseq)
|
|||
ruby_xfree(body);
|
||||
}
|
||||
|
||||
if (ISEQ_EXECUTABLE_P(iseq) && iseq->aux.exec.local_hooks) {
|
||||
if (iseq && ISEQ_EXECUTABLE_P(iseq) && iseq->aux.exec.local_hooks) {
|
||||
rb_hook_list_free(iseq->aux.exec.local_hooks);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue