diff options
author | Barry Warsaw <barry@python.org> | 2000-07-01 04:45:52 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-07-01 04:45:52 +0000 |
commit | 2e65a7eac4dd52090431f21231caf3e7bfa85684 (patch) | |
tree | c7d185d18b9a3f3578bce8f7877fd993b7ff34dc /Python/exceptions.c | |
parent | 1f1a388408810dc6b83484a7bb55318be5c1b2c0 (diff) | |
download | cpython-2e65a7eac4dd52090431f21231caf3e7bfa85684.tar.gz |
init_exceptions(): Decref `doc' so it doesn't leak.
Diffstat (limited to 'Python/exceptions.c')
-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 4596c27047..2726519c02 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."); |