mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
fix possible NULL dereference
This commit is contained in:
parent
2f197078fb
commit
f2fe7f0881
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue