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