mirror of https://github.com/python/cpython.git
init_exceptions(): Decref `doc' so it doesn't leak.
This commit is contained in:
parent
c08cb04c29
commit
8fcaa92c5f
|
@ -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…
Reference in New Issue