зеркало из https://github.com/github/ruby.git
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:
Родитель
ae19a18996
Коммит
4fb8d00436
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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче