fix possible NULL dereference
This commit is contained in:
parent
2f197078fb
commit
f2fe7f0881
|
@ -628,8 +628,10 @@ descr_new(PyTypeObject *descrtype, PyTypeObject *type, const char *name)
|
|||
Py_DECREF(descr);
|
||||
descr = NULL;
|
||||
}
|
||||
else {
|
||||
descr->d_qualname = NULL;
|
||||
}
|
||||
}
|
||||
return descr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue