summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-07-01 04:45:52 (GMT)
committerBarry Warsaw <barry@python.org>2000-07-01 04:45:52 (GMT)
commit8fcaa92c5f4290c0ea31f2680c87635bc751303f (patch)
tree4ab6eaf3d42ced4a272137b651b8d662813e48ff /Python
parentc08cb04c291309477c57fd89b4ab3cf89d88e471 (diff)
downloadcpython-8fcaa92c5f4290c0ea31f2680c87635bc751303f.zip
cpython-8fcaa92c5f4290c0ea31f2680c87635bc751303f.tar.gz
cpython-8fcaa92c5f4290c0ea31f2680c87635bc751303f.tar.bz2
init_exceptions(): Decref `doc' so it doesn't leak.
Diffstat (limited to 'Python')
-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.");