summaryrefslogtreecommitdiffstats
path: root/Python/exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r--Python/exceptions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c
index 4596c27..2726519 100644
--- a/Python/exceptions.c
+++ b/Python/exceptions.c
@@ -909,6 +909,7 @@ init_exceptions()
PyObject* args;
PyDict_SetItemString(mydict, "__doc__", doc);
+ Py_DECREF(doc);
if (PyErr_Occurred())
Py_FatalError("exceptions bootstrapping error.");