summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-04 14:59:00 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-04 14:59:00 (GMT)
commit5910d81c979b79a98f3d5ac8dea81e84ab721c37 (patch)
treec9f4e966ed0ff8bfe67903f271218e0303dadc4a
parent7d6cc5b30342db3718ef4003dffa0e433fc60151 (diff)
downloadcpython-5910d81c979b79a98f3d5ac8dea81e84ab721c37.zip
cpython-5910d81c979b79a98f3d5ac8dea81e84ab721c37.tar.gz
cpython-5910d81c979b79a98f3d5ac8dea81e84ab721c37.tar.bz2
Add a missing decref -- PyErr_SetObject increfs the 'object'!
-rw-r--r--Modules/_ssl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 906a72a..9c100ab 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -169,6 +169,7 @@ PySSL_SetError(PySSLObject *obj, int ret)
PyTuple_SET_ITEM(v, 0, n);
PyTuple_SET_ITEM(v, 1, s);
PyErr_SetObject(PySSLErrorObject, v);
+ Py_DECREF(v);
return NULL;
}