diff options
author | Barry Warsaw <barry@python.org> | 2000-07-01 04:45:52 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-07-01 04:45:52 (GMT) |
commit | 8fcaa92c5f4290c0ea31f2680c87635bc751303f (patch) | |
tree | 4ab6eaf3d42ced4a272137b651b8d662813e48ff | |
parent | c08cb04c291309477c57fd89b4ab3cf89d88e471 (diff) | |
download | cpython-8fcaa92c5f4290c0ea31f2680c87635bc751303f.zip cpython-8fcaa92c5f4290c0ea31f2680c87635bc751303f.tar.gz cpython-8fcaa92c5f4290c0ea31f2680c87635bc751303f.tar.bz2 |
init_exceptions(): Decref `doc' so it doesn't leak.
-rw-r--r-- | Python/exceptions.c | 1 |
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."); |