From 5910d81c979b79a98f3d5ac8dea81e84ab721c37 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Wed, 4 Aug 2004 14:59:00 +0000 Subject: [PATCH] Add a missing decref -- PyErr_SetObject increfs the 'object'! --- Modules/_ssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 906a72ac8a1..9c100abfcdf 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; }