diff Python/exceptions.c @ 13283:3e07a7315af5 legacy-trunk

init_exceptions(): Decref `doc' so it doesn't leak.
author Barry Warsaw <barry@python.org>
date Sat, 01 Jul 2000 04:45:52 +0000
parents 1e302d996d58
children d6198e703602
line wrap: on
line diff
--- a/Python/exceptions.c	Sat Jul 01 04:23:47 2000 +0000
+++ b/Python/exceptions.c	Sat Jul 01 04:45:52 2000 +0000
@@ -909,6 +909,7 @@
     PyObject* args;
 
     PyDict_SetItemString(mydict, "__doc__", doc);
+    Py_DECREF(doc);
     if (PyErr_Occurred())
 	Py_FatalError("exceptions bootstrapping error.");