From: Michael W. Hudson Date: Wed, 4 Aug 2004 14:59:00 +0000 (+0000) Subject: Add a missing decref -- PyErr_SetObject increfs the 'object'! X-Git-Tag: v2.4a2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5910d81c979b79a98f3d5ac8dea81e84ab721c37;p=python Add a missing decref -- PyErr_SetObject increfs the 'object'! --- diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 906a72ac8a..9c100abfcd 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; }