mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
init_exceptions(): Decref `doc' so it doesn't leak.
This commit is contained in:
parent
c08cb04c29
commit
8fcaa92c5f
1 changed files with 1 additions and 0 deletions
|
@ -909,6 +909,7 @@ init_exceptions()
|
|||
PyObject* args;
|
||||
|
||||
PyDict_SetItemString(mydict, "__doc__", doc);
|
||||
Py_DECREF(doc);
|
||||
if (PyErr_Occurred())
|
||||
Py_FatalError("exceptions bootstrapping error.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue