mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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;
|
PyObject* args;
|
||||||
|
|
||||||
PyDict_SetItemString(mydict, "__doc__", doc);
|
PyDict_SetItemString(mydict, "__doc__", doc);
|
||||||
|
Py_DECREF(doc);
|
||||||
if (PyErr_Occurred())
|
if (PyErr_Occurred())
|
||||||
Py_FatalError("exceptions bootstrapping error.");
|
Py_FatalError("exceptions bootstrapping error.");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue